Commit c29b8f7d authored by Helge Deller's avatar Helge Deller Committed by Sasha Levin

parisc, parport_gsc: Fixes for printk continuation lines

[ Upstream commit 83b5d1e3 ]
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 8cc57997
...@@ -293,7 +293,7 @@ struct parport *parport_gsc_probe_port(unsigned long base, ...@@ -293,7 +293,7 @@ struct parport *parport_gsc_probe_port(unsigned long base,
p->irq = PARPORT_IRQ_NONE; p->irq = PARPORT_IRQ_NONE;
} }
if (p->irq != PARPORT_IRQ_NONE) { if (p->irq != PARPORT_IRQ_NONE) {
printk(", irq %d", p->irq); pr_cont(", irq %d", p->irq);
if (p->dma == PARPORT_DMA_AUTO) { if (p->dma == PARPORT_DMA_AUTO) {
p->dma = PARPORT_DMA_NONE; p->dma = PARPORT_DMA_NONE;
...@@ -303,8 +303,8 @@ struct parport *parport_gsc_probe_port(unsigned long base, ...@@ -303,8 +303,8 @@ struct parport *parport_gsc_probe_port(unsigned long base,
is mandatory (see above) */ is mandatory (see above) */
p->dma = PARPORT_DMA_NONE; p->dma = PARPORT_DMA_NONE;
printk(" ["); pr_cont(" [");
#define printmode(x) {if(p->modes&PARPORT_MODE_##x){printk("%s%s",f?",":"",#x);f++;}} #define printmode(x) {if(p->modes&PARPORT_MODE_##x){pr_cont("%s%s",f?",":"",#x);f++;}}
{ {
int f = 0; int f = 0;
printmode(PCSPP); printmode(PCSPP);
...@@ -315,7 +315,7 @@ struct parport *parport_gsc_probe_port(unsigned long base, ...@@ -315,7 +315,7 @@ struct parport *parport_gsc_probe_port(unsigned long base,
// printmode(DMA); // printmode(DMA);
} }
#undef printmode #undef printmode
printk("]\n"); pr_cont("]\n");
if (p->irq != PARPORT_IRQ_NONE) { if (p->irq != PARPORT_IRQ_NONE) {
if (request_irq (p->irq, parport_irq_handler, if (request_irq (p->irq, parport_irq_handler,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment