Commit e83e416c authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

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: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 4248f5e0
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
* *
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/netdevice.h> #include <linux/netdevice.h>
...@@ -166,10 +168,10 @@ static struct rtnl_link_ops vcan_link_ops __read_mostly = { ...@@ -166,10 +168,10 @@ static struct rtnl_link_ops vcan_link_ops __read_mostly = {
static __init int vcan_init_module(void) static __init int vcan_init_module(void)
{ {
pr_info("vcan: Virtual CAN interface driver\n"); pr_info("Virtual CAN interface driver\n");
if (echo) 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); return rtnl_link_register(&vcan_link_ops);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment