summaryrefslogtreecommitdiff
path: root/drivers/net/arcnet/capmode.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-05-05 10:05:56 -0700
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-09-23 08:44:24 +0200
commit05a24b234b9dda3720208b74503f2cf1d05774ee (patch)
tree117e7e1908f427ed51b441deb0d2efed71d1d0d1 /drivers/net/arcnet/capmode.c
parenta34c0932c3b2f28542825ffc5280d562c49ad42d (diff)
downloadlinux-next-05a24b234b9dda3720208b74503f2cf1d05774ee.tar.gz
arcnet: Convert printk to pr_<level>
Use the more current logging style. Remove #define VERSION, use pr_info normally. Add pr_fmt with "arcnet:" prefixes and KBUILD_MODNAME. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Diffstat (limited to 'drivers/net/arcnet/capmode.c')
-rw-r--r--drivers/net/arcnet/capmode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c
index d62d1accf4b6..92b553e70d5c 100644
--- a/drivers/net/arcnet/capmode.c
+++ b/drivers/net/arcnet/capmode.c
@@ -26,6 +26,8 @@
* **********************
*/
+#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
+
#include <linux/module.h>
#include <linux/gfp.h>
#include <linux/init.h>
@@ -35,8 +37,6 @@
#include <linux/skbuff.h>
#include <linux/arcdevice.h>
-#define VERSION "arcnet: cap mode (`c') encapsulation support loaded.\n"
-
/* packet receiver */
static void rx(struct net_device *dev, int bufnum,
struct archdr *pkthdr, int length)
@@ -259,7 +259,7 @@ static void arcnet_cap_init(void)
static int __init capmode_module_init(void)
{
- printk(VERSION);
+ pr_info("%s\n", "cap mode (`c') encapsulation support loaded");
arcnet_cap_init();
return 0;
}