Skip to content

Commit

Permalink
can: vcan: introduce pr_fmt and make use of it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marc Kleine-Budde committed Aug 13, 2019
1 parent 4248f5e commit e83e416
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/can/vcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/module.h>
#include <linux/init.h>
#include <linux/netdevice.h>
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e83e416

Please sign in to comment.