summaryrefslogtreecommitdiff
path: root/net/x25/x25_forward.c
diff options
context:
space:
mode:
authorwangweidong <wangweidong1@huawei.com>2013-12-06 19:24:33 +0800
committerDavid S. Miller <davem@davemloft.net>2013-12-09 20:24:18 -0500
commitb73e9e3cf06ef8180c75a6bd28cdd1b833d22a3a (patch)
tree8823cc5b0cf471c9e139d9b260f4ad651e50cef8 /net/x25/x25_forward.c
parentd346a3fae3ff1d99f5d0c819bf86edf9094a26a1 (diff)
x25: convert printks to pr_<level>
use pr_<level> instead of printk(LEVEL) Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/x25_forward.c')
-rw-r--r--net/x25/x25_forward.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/x25/x25_forward.c b/net/x25/x25_forward.c
index c541b622ae16..cf561f1613e1 100644
--- a/net/x25/x25_forward.c
+++ b/net/x25/x25_forward.c
@@ -8,6 +8,9 @@
* History
* 03-01-2007 Added forwarding for x.25 Andrew Hendry
*/
+
+#define pr_fmt(fmt) "X25: " fmt
+
#include <linux/if_arp.h>
#include <linux/init.h>
#include <linux/slab.h>
@@ -51,7 +54,7 @@ int x25_forward_call(struct x25_address *dest_addr, struct x25_neigh *from,
list_for_each(entry, &x25_forward_list) {
x25_frwd = list_entry(entry, struct x25_forward, node);
if (x25_frwd->lci == lci) {
- printk(KERN_WARNING "X.25: call request for lci which is already registered!, transmitting but not registering new pair\n");
+ pr_warn("call request for lci which is already registered!, transmitting but not registering new pair\n");
same_lci = 1;
}
}