dynamic_debug: make netif_dbg() call __netdev_printk()
authorJason Baron <jbaron@redhat.com>
Thu, 11 Aug 2011 18:36:53 +0000 (14:36 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 01:23:06 +0000 (18:23 -0700)
Previously, netif_dbg() was using dynamic_dev_dbg() to perform
the underlying printk. Fix it to use __netdev_printk(), instead.

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/netdevice.h

index 9333a0300c5e6e20cbf9390b80eaf15e5d6894d6..279726039f0012e3f959dd7124d37e1713808ddc 100644 (file)
@@ -2714,9 +2714,7 @@ do {                                                              \
 #define netif_dbg(priv, type, netdev, format, args...)         \
 do {                                                           \
        if (netif_msg_##type(priv))                             \
-               dynamic_dev_dbg((netdev)->dev.parent,           \
-                               "%s: " format,                  \
-                               netdev_name(netdev), ##args);   \
+               dynamic_netdev_dbg(netdev, format, ##args);     \
 } while (0)
 #else
 #define netif_dbg(priv, type, dev, format, args...)                    \