summaryrefslogtreecommitdiff
path: root/drivers/net/arcnet/com90io.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/com90io.c
parenta34c0932c3b2f28542825ffc5280d562c49ad42d (diff)
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/com90io.c')
-rw-r--r--drivers/net/arcnet/com90io.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/arcnet/com90io.c b/drivers/net/arcnet/com90io.c
index ec2db8527862..32abaa8d0dc4 100644
--- a/drivers/net/arcnet/com90io.c
+++ b/drivers/net/arcnet/com90io.c
@@ -25,6 +25,9 @@
*
* **********************
*/
+
+#define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
+
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
@@ -37,8 +40,6 @@
#include <linux/io.h>
#include <linux/arcdevice.h>
-#define VERSION "arcnet: COM90xx IO-mapped mode support (by David Woodhouse et el.)\n"
-
/* Internal function declarations */
static int com90io_found(struct net_device *dev);
@@ -146,8 +147,8 @@ static int __init com90io_probe(struct net_device *dev)
unsigned long airqmask;
if (BUGLVL(D_NORMAL)) {
- printk(VERSION);
- printk("E-mail me if you actually test this driver, please!\n");
+ pr_info("%s\n", "COM90xx IO-mapped mode support (by David Woodhouse et el.)");
+ pr_info("E-mail me if you actually test this driver, please!\n");
}
if (!ioaddr) {
@@ -369,7 +370,7 @@ static int __init com90io_setup(char *s)
return 0;
switch (ints[0]) {
default: /* ERROR */
- printk("com90io: Too many arguments.\n");
+ pr_err("Too many arguments\n");
case 2: /* IRQ */
irq = ints[2];
case 1: /* IO address */