net/atm: Convert printk to pr_<level>
Add #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__ Remove function names from output Use single line pr_debug instead of broken multiple uses without newline Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b747caf365
commit
99824461ea
@@ -1,3 +1,5 @@
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/timer.h>
|
||||
@@ -1447,7 +1449,7 @@ static __init int atm_mpoa_init(void)
|
||||
register_atm_ioctl(&atm_ioctl_ops);
|
||||
|
||||
if (mpc_proc_init() != 0)
|
||||
printk(KERN_INFO "mpoa: failed to initialize /proc/mpoa\n");
|
||||
pr_info("failed to initialize /proc/mpoa\n");
|
||||
|
||||
printk("mpc.c: " __DATE__ " " __TIME__ " initialized\n");
|
||||
|
||||
|
Reference in New Issue
Block a user