diff options
author | Joe Perches <joe@perches.com> | 2012-03-12 03:03:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-12 20:05:21 -0400 |
commit | afd465030acb4098abcb6b965a5aebc7ea2209e0 (patch) | |
tree | 59c93e8eda99cd59339dfbb77f1d2c4f79c634ee /net/ipv4/gre.c | |
parent | 058bd4d2a4ff0aaa4a5381c67e776729d840c785 (diff) |
net: ipv4: Standardize prefixes for message logging
Add #define pr_fmt(fmt) as appropriate.
Add "IPv4: ", "TCP: ", and "IPsec: " to appropriate files.
Standardize on "UDPLite: " for appropriate uses.
Some prefixes were previously "UDPLITE: " and "UDP-Lite: ".
Add KBUILD_MODNAME ": " to icmp and gre.
Remove embedded prefixes as appropriate.
Add missing "\n" to pr_info in gre.c.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/gre.c')
-rw-r--r-- | net/ipv4/gre.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/gre.c b/net/ipv4/gre.c index 8cb1ebb7cd74..42a491055c76 100644 --- a/net/ipv4/gre.c +++ b/net/ipv4/gre.c | |||
@@ -10,6 +10,8 @@ | |||
10 | * | 10 | * |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
14 | |||
13 | #include <linux/module.h> | 15 | #include <linux/module.h> |
14 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
15 | #include <linux/kmod.h> | 17 | #include <linux/kmod.h> |
@@ -118,10 +120,10 @@ static const struct net_protocol net_gre_protocol = { | |||
118 | 120 | ||
119 | static int __init gre_init(void) | 121 | static int __init gre_init(void) |
120 | { | 122 | { |
121 | pr_info("GRE over IPv4 demultiplexor driver"); | 123 | pr_info("GRE over IPv4 demultiplexor driver\n"); |
122 | 124 | ||
123 | if (inet_add_protocol(&net_gre_protocol, IPPROTO_GRE) < 0) { | 125 | if (inet_add_protocol(&net_gre_protocol, IPPROTO_GRE) < 0) { |
124 | pr_err("gre: can't add protocol\n"); | 126 | pr_err("can't add protocol\n"); |
125 | return -EAGAIN; | 127 | return -EAGAIN; |
126 | } | 128 | } |
127 | 129 | ||