diff options
author | Jason Baron <jbaron@redhat.com> | 2011-08-11 14:36:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 21:23:06 -0400 |
commit | ffa10cb47a94c9b456c83301c8047e2a898dd409 (patch) | |
tree | dd0fb674235c51d54fd80540420c23002795048e /net/core | |
parent | ac0ac38f68be73b92dc390ceace50a0d143d76ae (diff) |
dynamic_debug: make netdev_dbg() call __netdev_printk()
Previously, if dynamic debug was enabled netdev_dbg() was using
dynamic_dev_dbg() to print out the underlying msg. Fix this by making
sure netdev_dbg() uses __netdev_printk().
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 'net/core')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 17d67b579beb..c47a7bcf3c64 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -6290,7 +6290,7 @@ const char *netdev_drivername(const struct net_device *dev) | |||
6290 | return empty; | 6290 | return empty; |
6291 | } | 6291 | } |
6292 | 6292 | ||
6293 | static int __netdev_printk(const char *level, const struct net_device *dev, | 6293 | int __netdev_printk(const char *level, const struct net_device *dev, |
6294 | struct va_format *vaf) | 6294 | struct va_format *vaf) |
6295 | { | 6295 | { |
6296 | int r; | 6296 | int r; |
@@ -6305,6 +6305,7 @@ static int __netdev_printk(const char *level, const struct net_device *dev, | |||
6305 | 6305 | ||
6306 | return r; | 6306 | return r; |
6307 | } | 6307 | } |
6308 | EXPORT_SYMBOL(__netdev_printk); | ||
6308 | 6309 | ||
6309 | int netdev_printk(const char *level, const struct net_device *dev, | 6310 | int netdev_printk(const char *level, const struct net_device *dev, |
6310 | const char *format, ...) | 6311 | const char *format, ...) |