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, Nov 21, 9:17 PM
Unknown Object (File)
Thu, Nov 20, 7:31 PM
Unknown Object (File)
Sun, Nov 16, 4:25 PM
Unknown Object (File)
Sat, Nov 15, 2:47 PM
Unknown Object (File)
Mon, Nov 10, 6:20 AM
Unknown Object (File)
Mon, Nov 10, 2:22 AM
Unknown Object (File)
Thu, Nov 6, 1:11 AM
Unknown Object (File)
Tue, Nov 4, 1:11 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.Wed, Oct 29, 4:06 PM
This revision was automatically updated to reflect the committed changes.