added if_log() and device_log()

Adrian Chadd adrian at freebsd.org
Mon Mar 22 00:23:38 UTC 2021


hi!

I just added if_log() and device_log(). They're log() variants of
if_printf() / device_printf() which will log to the kernel/syslog
buffer rather than do console output. That way syslog can decide
whether it needs to be printed or not.

I'm going to submit some patches soon to convert ath(4) and
net80211(4) to use if_log / device_log where appropriate so debugging
doesn't spam the console.

If you're writing device or interface logging/debugging and you want
to avoid the console, if_log() / device_log() is now your friend on
-HEAD.


-adrian


More information about the freebsd-arch mailing list