The following assumes you're running 12.1-RELEASE-p9; for 11.x, the line numbers may be different!I am not very familiar with FreeBSD's code. Does it cause any problem?
beadm create patch
and beadm activate patch
, reboot. cd /usr/src
, then mv sys/dev/ath/if_ath.c{,.orig}
cp sys/dev/ath/if_ath.c{.orig,}
DPRINTF(sc, ATH_DEBUG_BEACON,
diff -U 5 sys/dev/ath/if_ath.c{.orig,} > ~/quite_ath.patch
patch --dry-run -d /usr/src < ~/quite_ath.patch
\nohup nice make -C /usr/src {build,install}kernel &
and less nohup.out
(press G F to follow the build messages flying in, or use sysutils/most, there it's B F) sysctl dev.ath.0.debug
. If it works, consider to file in a bug report, append your patch (also inline in the text of the bug report), and kindly ask the developer to apply such changes for all printf(3)()s, e.g. use a macro IPRINTF() (info printf) like DPRINTF() that can be switched on/off via a sysctl(8) knob dev.<driver>.<num>.info
à la dev.<driver>.<num>.debug
.