The wiphy_debug macro expands to dev_printk, which doesn't give any way to control debugging output. This patch changes all uses of wiphy_debug to wiphy_dbg, which will use dynamic debug if it is enabled. This allows users to dynamically control the behavior of debugging output through debugfs or through module parameters.
For example:
echo 'module mwlwifi +p' > /sys/kernel/debug/dynamic_debug/control # enable debug logging from mwlwifi
modprobe mwlwifi dyndbg=+p # alternative to above
echo 'module mwlwifi =_' > /sys/kernel/debug/dynamic_debug/control # disable debug logging
The
wiphy_debug
macro expands todev_printk
, which doesn't give any way to control debugging output. This patch changes all uses ofwiphy_debug
towiphy_dbg
, which will use dynamic debug if it is enabled. This allows users to dynamically control the behavior of debugging output through debugfs or through module parameters.For example: