parport: Convert printk(KERN_<LEVEL> to pr_<level>(
Use the more common kernel style. Miscellanea: o Coalesce formats o Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: https://lore.kernel.org/r/20200403134325.11523-2-sudipm.mukherjee@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

vanhempi
d98ce9fef7
commit
decf26f6ec
@@ -282,7 +282,7 @@ struct parport *parport_gsc_probe_port(unsigned long base,
|
||||
p->size = (p->modes & PARPORT_MODE_EPP)?8:3;
|
||||
p->private_data = priv;
|
||||
|
||||
printk(KERN_INFO "%s: PC-style at 0x%lx", p->name, p->base);
|
||||
pr_info("%s: PC-style at 0x%lx", p->name, p->base);
|
||||
p->irq = irq;
|
||||
if (p->irq == PARPORT_IRQ_AUTO) {
|
||||
p->irq = PARPORT_IRQ_NONE;
|
||||
@@ -315,8 +315,7 @@ struct parport *parport_gsc_probe_port(unsigned long base,
|
||||
if (p->irq != PARPORT_IRQ_NONE) {
|
||||
if (request_irq (p->irq, parport_irq_handler,
|
||||
0, p->name, p)) {
|
||||
printk (KERN_WARNING "%s: irq %d in use, "
|
||||
"resorting to polled operation\n",
|
||||
pr_warn("%s: irq %d in use, resorting to polled operation\n",
|
||||
p->name, p->irq);
|
||||
p->irq = PARPORT_IRQ_NONE;
|
||||
p->dma = PARPORT_DMA_NONE;
|
||||
@@ -347,7 +346,7 @@ static int __init parport_init_chip(struct parisc_device *dev)
|
||||
unsigned long port;
|
||||
|
||||
if (!dev->irq) {
|
||||
printk(KERN_WARNING "IRQ not found for parallel device at 0x%llx\n",
|
||||
pr_warn("IRQ not found for parallel device at 0x%llx\n",
|
||||
(unsigned long long)dev->hpa.start);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
Viittaa uudesa ongelmassa
Block a user