Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netdevice: Update netif_dbg for CONFIG_DYNAMIC_DEBUG

Make netif_dbg use dynamic debugging whenever
CONFIG_DYNAMIC_DEBUG is enabled.

commit b558c96ffa53
("dynamic_debug: make dynamic-debug supersede DEBUG ccflag")
missed updating the netif_dbg variant.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
0053ea9c a0f68763

+4 -4
+4 -4
include/linux/netdevice.h
··· 2795 2795 #define netif_info(priv, type, dev, fmt, args...) \ 2796 2796 netif_level(info, priv, type, dev, fmt, ##args) 2797 2797 2798 - #if defined(DEBUG) 2799 - #define netif_dbg(priv, type, dev, format, args...) \ 2800 - netif_printk(priv, type, KERN_DEBUG, dev, format, ##args) 2801 - #elif defined(CONFIG_DYNAMIC_DEBUG) 2798 + #if defined(CONFIG_DYNAMIC_DEBUG) 2802 2799 #define netif_dbg(priv, type, netdev, format, args...) \ 2803 2800 do { \ 2804 2801 if (netif_msg_##type(priv)) \ 2805 2802 dynamic_netdev_dbg(netdev, format, ##args); \ 2806 2803 } while (0) 2804 + #elif defined(DEBUG) 2805 + #define netif_dbg(priv, type, dev, format, args...) \ 2806 + netif_printk(priv, type, KERN_DEBUG, dev, format, ##args) 2807 2807 #else 2808 2808 #define netif_dbg(priv, type, dev, format, args...) \ 2809 2809 ({ \