diff options
author | Joe Perches <joe@perches.com> | 2011-05-26 06:58:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-02 17:04:39 -0400 |
commit | afab2d2999e9c12cf319e1f19da9a0a754560d80 (patch) | |
tree | a36a57beddf248af65dc2299f26f5e7c60da3296 /net/8021q/vlanproc.c | |
parent | 8a07eb0a50aebc8c95478d49c28c7f8419a26cef (diff) |
net: 8021q: Add pr_fmt
Use the current logging style.
Add #define pr_fmt and remove embedded prefix from formats.
Not converting the current pr_<level> uses to netdev_<level>
because all the output here is nicely prefaced with "8021q: ".
Remove __func__ use from proc registration failure message.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlanproc.c')
-rw-r--r-- | net/8021q/vlanproc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index d940c49d168a..016d7f4f1c84 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c | |||
@@ -17,6 +17,8 @@ | |||
17 | * Jan 20, 1998 Ben Greear Initial Version | 17 | * Jan 20, 1998 Ben Greear Initial Version |
18 | *****************************************************************************/ | 18 | *****************************************************************************/ |
19 | 19 | ||
20 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
21 | |||
20 | #include <linux/module.h> | 22 | #include <linux/module.h> |
21 | #include <linux/errno.h> | 23 | #include <linux/errno.h> |
22 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
@@ -155,7 +157,7 @@ int __net_init vlan_proc_init(struct net *net) | |||
155 | return 0; | 157 | return 0; |
156 | 158 | ||
157 | err: | 159 | err: |
158 | pr_err("%s: can't create entry in proc filesystem!\n", __func__); | 160 | pr_err("can't create entry in proc filesystem!\n"); |
159 | vlan_proc_cleanup(net); | 161 | vlan_proc_cleanup(net); |
160 | return -ENOBUFS; | 162 | return -ENOBUFS; |
161 | } | 163 | } |