From: Marc Kleine-Budde Date: Fri, 26 Jul 2019 07:35:43 +0000 (+0200) Subject: can: vcan: introduce pr_fmt and make use of it X-Git-Tag: v5.4-rc1~131^2~229^2~1 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e83e416cdf4ff7f4815fe039a70688cf7e2d9d58;p=linux.git can: vcan: introduce pr_fmt and make use of it This patch introduces pr_fmt and makes use of it, also it converts a printk() to pr_info(). Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/vcan.c b/drivers/net/can/vcan.c index 351e562ecc90..daf27133887b 100644 --- a/drivers/net/can/vcan.c +++ b/drivers/net/can/vcan.c @@ -38,6 +38,8 @@ * */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include @@ -166,10 +168,10 @@ static struct rtnl_link_ops vcan_link_ops __read_mostly = { static __init int vcan_init_module(void) { - pr_info("vcan: Virtual CAN interface driver\n"); + pr_info("Virtual CAN interface driver\n"); if (echo) - printk(KERN_INFO "vcan: enabled echo on driver level.\n"); + pr_info("enabled echo on driver level.\n"); return rtnl_link_register(&vcan_link_ops); }