diff options
author | Joe Perches <joe@perches.com> | 2012-05-16 15:58:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-17 05:00:04 -0400 |
commit | e005d193d55ee5f757b13306112d8c23aac27a88 (patch) | |
tree | 46a17d725e100c162198bb283581866c9ffa4a47 /net/core/net_namespace.c | |
parent | 675418d5187785d3d996ca15fd700f5e02901cbc (diff) |
net: core: Use pr_<level>
Use the current logging style.
This enables use of dynamic debugging as well.
Convert printk(KERN_<LEVEL> to pr_<level>.
Add pr_fmt. Remove embedded prefixes, use
%s, __func__ instead.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net_namespace.c')
-rw-r--r-- | net/core/net_namespace.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 31a5ae51a45c..dddbacb8f28c 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c | |||
@@ -1,3 +1,5 @@ | |||
1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
2 | |||
1 | #include <linux/workqueue.h> | 3 | #include <linux/workqueue.h> |
2 | #include <linux/rtnetlink.h> | 4 | #include <linux/rtnetlink.h> |
3 | #include <linux/cache.h> | 5 | #include <linux/cache.h> |
@@ -212,8 +214,8 @@ static void net_free(struct net *net) | |||
212 | { | 214 | { |
213 | #ifdef NETNS_REFCNT_DEBUG | 215 | #ifdef NETNS_REFCNT_DEBUG |
214 | if (unlikely(atomic_read(&net->use_count) != 0)) { | 216 | if (unlikely(atomic_read(&net->use_count) != 0)) { |
215 | printk(KERN_EMERG "network namespace not free! Usage: %d\n", | 217 | pr_emerg("network namespace not free! Usage: %d\n", |
216 | atomic_read(&net->use_count)); | 218 | atomic_read(&net->use_count)); |
217 | return; | 219 | return; |
218 | } | 220 | } |
219 | #endif | 221 | #endif |