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
|
@ -17,6 +17,8 @@
|
|||
* Fred Templin <fred.l.templin@boeing.com>: isatap support
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/capability.h>
|
||||
#include <linux/errno.h>
|
||||
|
@ -1301,7 +1303,7 @@ static int __init sit_init(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
printk(KERN_INFO "IPv6 over IPv4 tunneling driver\n");
|
||||
pr_info("IPv6 over IPv4 tunneling driver\n");
|
||||
|
||||
err = register_pernet_device(&sit_net_ops);
|
||||
if (err < 0)
|
||||
|
@ -1309,7 +1311,7 @@ static int __init sit_init(void)
|
|||
err = xfrm4_tunnel_register(&sit_handler, AF_INET6);
|
||||
if (err < 0) {
|
||||
unregister_pernet_device(&sit_net_ops);
|
||||
printk(KERN_INFO "sit init: Can't add protocol\n");
|
||||
pr_info("%s: can't add protocol\n", __func__);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue