[PATCH 4/5] staging/wlags49_h2: convert printk calls to netdev_* calls
From: Stephan Gabert
Date: Mon Jun 16 2014 - 11:01:21 EST
Use netdev_* where applicable.
Signed-off-by: Stephan Gabert <stephan.gabert@xxxxxx>
Signed-off-by: Nicolas Pfeiffer <nicolas.pfeiffer@xxxxxx>
---
drivers/staging/wlags49_h2/wl_cs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wlags49_h2/wl_cs.c b/drivers/staging/wlags49_h2/wl_cs.c
index 764f547..e658000 100644
--- a/drivers/staging/wlags49_h2/wl_cs.c
+++ b/drivers/staging/wlags49_h2/wl_cs.c
@@ -233,12 +233,12 @@ int wl_adapter_insert(struct pcmcia_device *link)
SET_NETDEV_DEV(dev, &link->dev);
ret = register_netdev(dev);
if (ret < 0) {
- printk("%s: register_netdev() failed\n", KBUILD_MODNAME);
+ netdev_err(dev, "register_netdev() failed\n");
goto failed;
}
- printk(KERN_INFO "%s: Wireless, io_addr %#03lx, irq %d, mac_address"
- " %pM\n", dev->name, dev->base_addr, dev->irq, dev->dev_addr);
+ netdev_info(dev, "io_addr %#03lx, irq %d, mac_address %pM\n",
+ dev->base_addr, dev->irq, dev->dev_addr);
return 0;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/