Page MenuHomeFreeBSD

vchiq: logging/tracing refactoring
ClosedPublic

Authored by adrian on Sun, Oct 26, 11:20 PM.
Tags
None
Referenced Files
F134772385: D53371.diff
Tue, Nov 4, 1:11 PM
Unknown Object (File)
Fri, Oct 31, 6:08 AM
Unknown Object (File)
Fri, Oct 31, 5:52 AM
Unknown Object (File)
Fri, Oct 31, 1:29 AM
Unknown Object (File)
Fri, Oct 31, 12:49 AM
Unknown Object (File)
Fri, Oct 31, 12:49 AM
Unknown Object (File)
Fri, Oct 31, 12:49 AM
Unknown Object (File)
Thu, Oct 30, 11:53 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.