diff options
author | wangweidong <wangweidong1@huawei.com> | 2013-12-06 06:24:33 -0500 |
---|---|---|
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) |
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 @@ | |||
23 | * i-frames. | 23 | * i-frames. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #define pr_fmt(fmt) "X25: " fmt | ||
27 | |||
26 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
27 | #include <linux/errno.h> | 29 | #include <linux/errno.h> |
28 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
@@ -317,7 +319,7 @@ static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametyp | |||
317 | break; | 319 | break; |
318 | 320 | ||
319 | default: | 321 | default: |
320 | printk(KERN_WARNING "x25: unknown %02X in state 3\n", frametype); | 322 | pr_warn("unknown %02X in state 3\n", frametype); |
321 | break; | 323 | break; |
322 | } | 324 | } |
323 | 325 | ||