diff options
author | Joe Perches <joe@perches.com> | 2012-05-15 10:11:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-16 01:01:03 -0400 |
commit | f32138319ca6541e65f95f8e17c9cc88ac1baf94 (patch) | |
tree | 20505f3d5955d89d3763a6182052a8e9b37eaf37 /net/ipv6/icmp.c | |
parent | 82251de2a2b7b84987dde104d48a765b63170149 (diff) |
net: ipv6: Standardize prefixes for message logging
Add #define pr_fmt(fmt) as appropriate.
Add "IPv6: " to appropriate files.
Convert printk(KERN_<LEVEL> to pr_<level> (but not KERN_DEBUG).
Standardize on "%s: " not "%s(): " when emitting __func__.
Use "%s: ", __func__ instead of embedding function name.
Coalesce formats, align arguments.
ADDRCONF output is now prefixed with "IPv6: "
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index cc079d8d4681..23c56ce9e86b 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -29,6 +29,8 @@ | |||
29 | * Kazunori MIYAZAWA @USAGI: change output process to use ip6_append_data | 29 | * Kazunori MIYAZAWA @USAGI: change output process to use ip6_append_data |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #define pr_fmt(fmt) "IPv6: " fmt | ||
33 | |||
32 | #include <linux/module.h> | 34 | #include <linux/module.h> |
33 | #include <linux/errno.h> | 35 | #include <linux/errno.h> |
34 | #include <linux/types.h> | 36 | #include <linux/types.h> |
@@ -820,9 +822,7 @@ static int __net_init icmpv6_sk_init(struct net *net) | |||
820 | err = inet_ctl_sock_create(&sk, PF_INET6, | 822 | err = inet_ctl_sock_create(&sk, PF_INET6, |
821 | SOCK_RAW, IPPROTO_ICMPV6, net); | 823 | SOCK_RAW, IPPROTO_ICMPV6, net); |
822 | if (err < 0) { | 824 | if (err < 0) { |
823 | printk(KERN_ERR | 825 | pr_err("Failed to initialize the ICMP6 control socket (err %d)\n", |
824 | "Failed to initialize the ICMP6 control socket " | ||
825 | "(err %d).\n", | ||
826 | err); | 826 | err); |
827 | goto fail; | 827 | goto fail; |
828 | } | 828 | } |
@@ -881,7 +881,7 @@ int __init icmpv6_init(void) | |||
881 | return 0; | 881 | return 0; |
882 | 882 | ||
883 | fail: | 883 | fail: |
884 | printk(KERN_ERR "Failed to register ICMP6 protocol\n"); | 884 | pr_err("Failed to register ICMP6 protocol\n"); |
885 | unregister_pernet_subsys(&icmpv6_sk_ops); | 885 | unregister_pernet_subsys(&icmpv6_sk_ops); |
886 | return err; | 886 | return err; |
887 | } | 887 | } |