Page MenuHomeFreeBSD

vchiq: logging/tracing refactoring
ClosedPublic

Authored by adrian on Oct 26 2025, 11:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 6:57 AM
Unknown Object (File)
Tue, May 12, 1:01 PM
Unknown Object (File)
Mon, May 4, 5:24 PM
Unknown Object (File)
Wed, Apr 29, 5:09 PM
Unknown Object (File)
Wed, Apr 29, 9:55 AM
Unknown Object (File)
Tue, Apr 28, 9:07 PM
Unknown Object (File)
Mon, Apr 27, 5:56 PM
Unknown Object (File)
Mon, Apr 27, 3:01 PM
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.