diff options
author | Jason Baron <jbaron@redhat.com> | 2011-08-11 14:36:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 21:23:06 -0400 |
commit | b5fb0a03214dfd02bc34bda659d5b89ef12741b2 (patch) | |
tree | 16bc6d62861e5ef06cf8643000f55db60e65a5f1 /include/linux/netdevice.h | |
parent | ffa10cb47a94c9b456c83301c8047e2a898dd409 (diff) |
dynamic_debug: make netif_dbg() call __netdev_printk()
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9333a0300c5e..279726039f00 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2714,9 +2714,7 @@ do { \ | |||
2714 | #define netif_dbg(priv, type, netdev, format, args...) \ | 2714 | #define netif_dbg(priv, type, netdev, format, args...) \ |
2715 | do { \ | 2715 | do { \ |
2716 | if (netif_msg_##type(priv)) \ | 2716 | if (netif_msg_##type(priv)) \ |
2717 | dynamic_dev_dbg((netdev)->dev.parent, \ | 2717 | dynamic_netdev_dbg(netdev, format, ##args); \ |
2718 | "%s: " format, \ | ||
2719 | netdev_name(netdev), ##args); \ | ||
2720 | } while (0) | 2718 | } while (0) |
2721 | #else | 2719 | #else |
2722 | #define netif_dbg(priv, type, dev, format, args...) \ | 2720 | #define netif_dbg(priv, type, dev, format, args...) \ |