Skip to content

Commit e83e416

Browse files
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 <[email protected]>
1 parent 4248f5e commit e83e416

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/can/vcan.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
*
3939
*/
4040

41+
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
42+
4143
#include <linux/module.h>
4244
#include <linux/init.h>
4345
#include <linux/netdevice.h>
@@ -166,10 +168,10 @@ static struct rtnl_link_ops vcan_link_ops __read_mostly = {
166168

167169
static __init int vcan_init_module(void)
168170
{
169-
pr_info("vcan: Virtual CAN interface driver\n");
171+
pr_info("Virtual CAN interface driver\n");
170172

171173
if (echo)
172-
printk(KERN_INFO "vcan: enabled echo on driver level.\n");
174+
pr_info("enabled echo on driver level.\n");
173175

174176
return rtnl_link_register(&vcan_link_ops);
175177
}

0 commit comments

Comments
 (0)