mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
82251de2a2
commit
f32138319c
16 changed files with 116 additions and 120 deletions
|
@ -29,6 +29,8 @@
|
|||
* Kazunori MIYAZAWA @USAGI: change output process to use ip6_append_data
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "IPv6: " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/types.h>
|
||||
|
@ -820,9 +822,7 @@ static int __net_init icmpv6_sk_init(struct net *net)
|
|||
err = inet_ctl_sock_create(&sk, PF_INET6,
|
||||
SOCK_RAW, IPPROTO_ICMPV6, net);
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR
|
||||
"Failed to initialize the ICMP6 control socket "
|
||||
"(err %d).\n",
|
||||
pr_err("Failed to initialize the ICMP6 control socket (err %d)\n",
|
||||
err);
|
||||
goto fail;
|
||||
}
|
||||
|
@ -881,7 +881,7 @@ int __init icmpv6_init(void)
|
|||
return 0;
|
||||
|
||||
fail:
|
||||
printk(KERN_ERR "Failed to register ICMP6 protocol\n");
|
||||
pr_err("Failed to register ICMP6 protocol\n");
|
||||
unregister_pernet_subsys(&icmpv6_sk_ops);
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue