diff options
author | Joe Perches <joe@perches.com> | 2012-05-16 05:55:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-17 04:34:38 -0400 |
commit | a4ca44fa578c7c7fd123b7fba3c2c98d4ba4e53d (patch) | |
tree | 58be0839a0c08ee8eaff4fac160dfb70b6982a70 /net/l2tp/l2tp_netlink.c | |
parent | 028940342a906db8da014a7603a0deddc2c323dd (diff) |
net: l2tp: Standardize logging styles
Use more current logging styles.
Add pr_fmt to prefix output appropriately.
Convert printks to pr_<level>.
Convert PRINTK macros to new l2tp_<level> macros.
Neaten some <foo>_refcount debugging macros.
Use print_hex_dump_bytes instead of hand-coded loops.
Coalesce formats and align arguments.
Some KERN_DEBUG output is not now emitted unless
dynamic_debugging is enabled.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_netlink.c')
-rw-r--r-- | net/l2tp/l2tp_netlink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c index 24edad0fd9ba..8577264378fe 100644 --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * published by the Free Software Foundation. | 14 | * published by the Free Software Foundation. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
18 | |||
17 | #include <net/sock.h> | 19 | #include <net/sock.h> |
18 | #include <net/genetlink.h> | 20 | #include <net/genetlink.h> |
19 | #include <net/udp.h> | 21 | #include <net/udp.h> |
@@ -902,7 +904,7 @@ static int l2tp_nl_init(void) | |||
902 | { | 904 | { |
903 | int err; | 905 | int err; |
904 | 906 | ||
905 | printk(KERN_INFO "L2TP netlink interface\n"); | 907 | pr_info("L2TP netlink interface\n"); |
906 | err = genl_register_family_with_ops(&l2tp_nl_family, l2tp_nl_ops, | 908 | err = genl_register_family_with_ops(&l2tp_nl_family, l2tp_nl_ops, |
907 | ARRAY_SIZE(l2tp_nl_ops)); | 909 | ARRAY_SIZE(l2tp_nl_ops)); |
908 | 910 | ||