aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arcnet/com20020.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/com20020.c
parentarcnet: Convert BUGMSG and BUGMSG2 to arc_prink and arc_cont (diff)
downloadlinux-dev-05a24b234b9dda3720208b74503f2cf1d05774ee.tar.xz
linux-dev-05a24b234b9dda3720208b74503f2cf1d05774ee.zip
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/com20020.c')
-rw-r--r--drivers/net/arcnet/com20020.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c
index b0b8a0be08e5..e813fc619ac9 100644
--- a/drivers/net/arcnet/com20020.c
+++ b/drivers/net/arcnet/com20020.c
@@ -25,6 +25,9 @@
*
* **********************
*/
+
+#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
+
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
@@ -39,8 +42,6 @@
#include <linux/io.h>
-#define VERSION "arcnet: COM20020 chipset support (by David Woodhouse et al.)\n"
-
static char *clockrates[] = {
"XXXXXXX", "XXXXXXXX", "XXXXXX",
"2.5 Mb/s", "1.25Mb/s", "625 Kb/s", "312.5 Kb/s",
@@ -368,7 +369,7 @@ MODULE_LICENSE("GPL");
static int __init com20020_module_init(void)
{
if (BUGLVL(D_NORMAL))
- printk(VERSION);
+ pr_info("%s\n", "COM20020 chipset support (by David Woodhouse et al.)\n");
return 0;
}