aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2017-08-12 17:45:48 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 11:25:43 -0400
commit6979b928cd53613c86dcb8e997abd26a5dcb45d3 (patch)
tree26286a40a31f314678e37e09788dfdbe0e22799c
parentf6887531c0c6b106dbe9aa5ed6eaa166d93df52e (diff)
parport_pc: use pr_cont
The kernel adds newline automatically between printk calls, we must use pr_cont if we want multiple printk strings on the same line. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/parport/parport_pc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
index 5548193a28a6..489492b608cf 100644
--- a/drivers/parport/parport_pc.c
+++ b/drivers/parport/parport_pc.c
@@ -1083,9 +1083,9 @@ static void show_parconfig_winbond(int io, int key)
1083 printk(KERN_INFO "Winbond LPT Config: active=%s, io=0x%02x%02x irq=%d, ", 1083 printk(KERN_INFO "Winbond LPT Config: active=%s, io=0x%02x%02x irq=%d, ",
1084 (cr30 & 0x01) ? "yes" : "no", cr60, cr61, cr70 & 0x0f); 1084 (cr30 & 0x01) ? "yes" : "no", cr60, cr61, cr70 & 0x0f);
1085 if ((cr74 & 0x07) > 3) 1085 if ((cr74 & 0x07) > 3)
1086 printk("dma=none\n"); 1086 pr_cont("dma=none\n");
1087 else 1087 else
1088 printk("dma=%d\n", cr74 & 0x07); 1088 pr_cont("dma=%d\n", cr74 & 0x07);
1089 printk(KERN_INFO 1089 printk(KERN_INFO
1090 "Winbond LPT Config: irqtype=%s, ECP fifo threshold=%d\n", 1090 "Winbond LPT Config: irqtype=%s, ECP fifo threshold=%d\n",
1091 irqtypes[crf0>>7], (crf0>>3)&0x0f); 1091 irqtypes[crf0>>7], (crf0>>3)&0x0f);
@@ -1685,14 +1685,14 @@ static int parport_ECP_supported(struct parport *pb)
1685 pb->base, config, configb); 1685 pb->base, config, configb);
1686 printk(KERN_DEBUG "0x%lx: ECP settings irq=", pb->base); 1686 printk(KERN_DEBUG "0x%lx: ECP settings irq=", pb->base);
1687 if ((configb >> 3) & 0x07) 1687 if ((configb >> 3) & 0x07)
1688 printk("%d", intrline[(configb >> 3) & 0x07]); 1688 pr_cont("%d", intrline[(configb >> 3) & 0x07]);
1689 else 1689 else
1690 printk("<none or set by other means>"); 1690 pr_cont("<none or set by other means>");
1691 printk(" dma="); 1691 pr_cont(" dma=");
1692 if ((configb & 0x03) == 0x00) 1692 if ((configb & 0x03) == 0x00)
1693 printk("<none or set by other means>\n"); 1693 pr_cont("<none or set by other means>\n");
1694 else 1694 else
1695 printk("%d\n", configb & 0x07); 1695 pr_cont("%d\n", configb & 0x07);
1696 } 1696 }
1697 1697
1698 /* Go back to mode 000 */ 1698 /* Go back to mode 000 */
@@ -2399,8 +2399,8 @@ static int sio_ite_8872_probe(struct pci_dev *pdev, int autoirq, int autodma,
2399 "parport_pc: ITE 8872 parallel port: io=0x%X", 2399 "parport_pc: ITE 8872 parallel port: io=0x%X",
2400 ite8872_lpt); 2400 ite8872_lpt);
2401 if (irq != PARPORT_IRQ_NONE) 2401 if (irq != PARPORT_IRQ_NONE)
2402 printk(", irq=%d", irq); 2402 pr_cont(", irq=%d", irq);
2403 printk("\n"); 2403 pr_cont("\n");
2404 return 1; 2404 return 1;
2405 } 2405 }
2406 2406
@@ -2581,10 +2581,10 @@ static int sio_via_probe(struct pci_dev *pdev, int autoirq, int autodma,
2581 printk(KERN_INFO 2581 printk(KERN_INFO
2582 "parport_pc: VIA parallel port: io=0x%X", port1); 2582 "parport_pc: VIA parallel port: io=0x%X", port1);
2583 if (irq != PARPORT_IRQ_NONE) 2583 if (irq != PARPORT_IRQ_NONE)
2584 printk(", irq=%d", irq); 2584 pr_cont(", irq=%d", irq);
2585 if (dma != PARPORT_DMA_NONE) 2585 if (dma != PARPORT_DMA_NONE)
2586 printk(", dma=%d", dma); 2586 pr_cont(", dma=%d", dma);
2587 printk("\n"); 2587 pr_cont("\n");
2588 return 1; 2588 return 1;
2589 } 2589 }
2590 2590