summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2011-08-11 14:36:48 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-22 18:23:06 -0700
commitffa10cb47a94c9b456c83301c8047e2a898dd409 (patch)
treedd0fb674235c51d54fd80540420c23002795048e /net/core
parentac0ac38f68be73b92dc390ceace50a0d143d76ae (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 17d67b579be..c47a7bcf3c6 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -6290,7 +6290,7 @@ const char *netdev_drivername(const struct net_device *dev)
return empty;
}
-static int __netdev_printk(const char *level, const struct net_device *dev,
+int __netdev_printk(const char *level, const struct net_device *dev,
struct va_format *vaf)
{
int r;
@@ -6305,6 +6305,7 @@ static int __netdev_printk(const char *level, const struct net_device *dev,
return r;
}
+EXPORT_SYMBOL(__netdev_printk);
int netdev_printk(const char *level, const struct net_device *dev,
const char *format, ...)