Page MenuHomeFreeBSD

vchiq: logging/tracing refactoring
ClosedPublic

Authored by adrian on Oct 26 2025, 11:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 12, 1:27 AM
Unknown Object (File)
Fri, Dec 5, 3:18 AM
Unknown Object (File)
Fri, Nov 21, 9:17 PM
Unknown Object (File)
Thu, Nov 20, 7:31 PM
Unknown Object (File)
Nov 16 2025, 4:25 PM
Unknown Object (File)
Nov 15 2025, 2:47 PM
Unknown Object (File)
Nov 10 2025, 6:20 AM
Unknown Object (File)
Nov 10 2025, 2:22 AM
Subscribers

Details

Summary
  • Create macros for error, info, warn, trace / debug
  • Migrate existing printf() logging to use the above macros
  • Add a sysctl knob to control it at runtime

This is based on work done in https://reviews.freebsd.org/D37878 .

Submitted by: Marco Devesas Campos <devesas.campos@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Submitted by: Marco Devesas Campos <devesas.campos@gmail.com>

Use `--author="Marco Devesas Campos <devesas.campos@gmail.com>" to record the author info in the commit

sys/arm/broadcom/bcm2835/bcm2835_audio.c
150

What output is this referring to?

sys/arm/broadcom/bcm2835/bcm2835_audio.c
150

the kernel console/output log!

OK. I didn't check if every LOG/WARN/ERROR is the "right" severity but that's trivial to change later.

sys/arm/broadcom/bcm2835/bcm2835_audio.c
873

maybe include (0-3)?

This revision is now accepted and ready to land.Oct 29 2025, 4:06 PM
This revision was automatically updated to reflect the committed changes.