diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-07-26 10:35:43 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-08-13 18:32:21 +0300 |
commit | e83e416cdf4ff7f4815fe039a70688cf7e2d9d58 (patch) | |
tree | 34e57ee47e487cf319204e241fd7f73f8bc611b5 /drivers/net/can/vcan.c | |
parent | 4248f5e02f2e23f75f15db15253137923209ad79 (diff) | |
download | linux-e83e416cdf4ff7f4815fe039a70688cf7e2d9d58.tar.xz |
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 <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/vcan.c')
-rw-r--r-- | drivers/net/can/vcan.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <linux/module.h> #include <linux/init.h> #include <linux/netdevice.h> @@ -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); } |