wan: Update to current logging forms
Use pr_fmt, pr_<level> and netdev_<level> as appropriate. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c75bb2c6f0
commit
23efcb738e
@@ -12,6 +12,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/mm.h>
|
||||
@@ -190,7 +192,7 @@ static int slvl_setup(struct slvl_device *sv, int iobase, int irq)
|
||||
dev->irq = irq;
|
||||
|
||||
if (register_hdlc_device(dev)) {
|
||||
printk(KERN_ERR "sealevel: unable to register HDLC device\n");
|
||||
pr_err("unable to register HDLC device\n");
|
||||
free_netdev(dev);
|
||||
return -1;
|
||||
}
|
||||
@@ -215,8 +217,7 @@ static __init struct slvl_board *slvl_init(int iobase, int irq,
|
||||
*/
|
||||
|
||||
if (!request_region(iobase, 8, "Sealevel 4021")) {
|
||||
printk(KERN_WARNING "sealevel: I/O 0x%X already in use.\n",
|
||||
iobase);
|
||||
pr_warn("I/O 0x%X already in use\n", iobase);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -267,7 +268,7 @@ static __init struct slvl_board *slvl_init(int iobase, int irq,
|
||||
|
||||
if (request_irq(irq, z8530_interrupt, IRQF_DISABLED,
|
||||
"SeaLevel", dev) < 0) {
|
||||
printk(KERN_WARNING "sealevel: IRQ %d already in use.\n", irq);
|
||||
pr_warn("IRQ %d already in use\n", irq);
|
||||
goto err_request_irq;
|
||||
}
|
||||
|
||||
@@ -292,7 +293,7 @@ static __init struct slvl_board *slvl_init(int iobase, int irq,
|
||||
*/
|
||||
|
||||
if (z8530_init(dev) != 0) {
|
||||
printk(KERN_ERR "Z8530 series device not found.\n");
|
||||
pr_err("Z8530 series device not found\n");
|
||||
enable_irq(irq);
|
||||
goto free_hw;
|
||||
}
|
||||
|
Reference in New Issue
Block a user