diff options
author | wangweidong <wangweidong1@huawei.com> | 2013-12-06 19:24:33 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-09 20:24:18 -0500 |
commit | b73e9e3cf06ef8180c75a6bd28cdd1b833d22a3a (patch) | |
tree | 8823cc5b0cf471c9e139d9b260f4ad651e50cef8 /net/x25/x25_link.c | |
parent | d346a3fae3ff1d99f5d0c819bf86edf9094a26a1 (diff) | |
download | op-kernel-dev-b73e9e3cf06ef8180c75a6bd28cdd1b833d22a3a.zip op-kernel-dev-b73e9e3cf06ef8180c75a6bd28cdd1b833d22a3a.tar.gz |
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_link.c')
-rw-r--r-- | net/x25/x25_link.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/x25/x25_link.c b/net/x25/x25_link.c index 4acacf3..fd5ffb2 100644 --- a/net/x25/x25_link.c +++ b/net/x25/x25_link.c @@ -21,6 +21,8 @@ * 2000-09-04 Henner Eisen dev_hold() / dev_put() for x25_neigh. */ +#define pr_fmt(fmt) "X25: " fmt + #include <linux/kernel.h> #include <linux/jiffies.h> #include <linux/timer.h> @@ -93,13 +95,13 @@ void x25_link_control(struct sk_buff *skb, struct x25_neigh *nb, if (!pskb_may_pull(skb, X25_STD_MIN_LEN + 4)) break; - printk(KERN_WARNING "x25: diagnostic #%d - %02X %02X %02X\n", + pr_warn("diagnostic #%d - %02X %02X %02X\n", skb->data[3], skb->data[4], skb->data[5], skb->data[6]); break; default: - printk(KERN_WARNING "x25: received unknown %02X with LCI 000\n", + pr_warn("received unknown %02X with LCI 000\n", frametype); break; } |