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>
This commit is contained in:
committed by
David S. Miller
parent
d346a3fae3
commit
b73e9e3cf0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user