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_in.c | |
parent | d346a3fae3ff1d99f5d0c819bf86edf9094a26a1 (diff) | |
download | lwn-b73e9e3cf06ef8180c75a6bd28cdd1b833d22a3a.tar.gz lwn-b73e9e3cf06ef8180c75a6bd28cdd1b833d22a3a.zip |
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_in.c')
-rw-r--r-- | net/x25/x25_in.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/x25/x25_in.c b/net/x25/x25_in.c index a49cd4ec551a..d1b0dc79bb6f 100644 --- a/net/x25/x25_in.c +++ b/net/x25/x25_in.c @@ -23,6 +23,8 @@ * i-frames. */ +#define pr_fmt(fmt) "X25: " fmt + #include <linux/slab.h> #include <linux/errno.h> #include <linux/kernel.h> @@ -317,7 +319,7 @@ static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametyp break; default: - printk(KERN_WARNING "x25: unknown %02X in state 3\n", frametype); + pr_warn("unknown %02X in state 3\n", frametype); break; } |