Commit 0053ea9c authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

netdevice: Update netif_dbg for CONFIG_DYNAMIC_DEBUG

Make netif_dbg use dynamic debugging whenever
CONFIG_DYNAMIC_DEBUG is enabled.

commit b558c96f
("dynamic_debug: make dynamic-debug supersede DEBUG ccflag")
missed updating the netif_dbg variant.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a0f68763
...@@ -2795,15 +2795,15 @@ do { \ ...@@ -2795,15 +2795,15 @@ do { \
#define netif_info(priv, type, dev, fmt, args...) \ #define netif_info(priv, type, dev, fmt, args...) \
netif_level(info, priv, type, dev, fmt, ##args) netif_level(info, priv, type, dev, fmt, ##args)
#if defined(DEBUG) #if defined(CONFIG_DYNAMIC_DEBUG)
#define netif_dbg(priv, type, dev, format, args...) \
netif_printk(priv, type, KERN_DEBUG, dev, format, ##args)
#elif defined(CONFIG_DYNAMIC_DEBUG)
#define netif_dbg(priv, type, netdev, format, args...) \ #define netif_dbg(priv, type, netdev, format, args...) \
do { \ do { \
if (netif_msg_##type(priv)) \ if (netif_msg_##type(priv)) \
dynamic_netdev_dbg(netdev, format, ##args); \ dynamic_netdev_dbg(netdev, format, ##args); \
} while (0) } while (0)
#elif defined(DEBUG)
#define netif_dbg(priv, type, dev, format, args...) \
netif_printk(priv, type, KERN_DEBUG, dev, format, ##args)
#else #else
#define netif_dbg(priv, type, dev, format, args...) \ #define netif_dbg(priv, type, dev, format, args...) \
({ \ ({ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment