提交 82dfabf1 编写于 作者: A Andy Shevchenko 提交者: Greg Kroah-Hartman

parport: Convert printk(KERN_WARN) to dev_warn()

dev_warn() will print device name with associated driver,
no need to keep this open coded.

While here, adjust indentation in the rest of dev_dbg() calls.
Tested-by: NNikola Ciprich <nikola.ciprich@linuxbox.cz>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NSudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 96edf537
...@@ -571,10 +571,9 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) ...@@ -571,10 +571,9 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id)
int irq; int irq;
if (priv->num_par == ARRAY_SIZE (priv->port)) { if (priv->num_par == ARRAY_SIZE (priv->port)) {
printk (KERN_WARNING dev_warn(&dev->dev,
"parport_serial: %s: only %zu parallel ports " "only %zu parallel ports supported (%d reported)\n",
"supported (%d reported)\n", pci_name (dev), ARRAY_SIZE(priv->port), card->numports);
ARRAY_SIZE(priv->port), card->numports);
break; break;
} }
...@@ -590,12 +589,12 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) ...@@ -590,12 +589,12 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id)
irq = dev->irq; irq = dev->irq;
if (irq == IRQ_NONE) { if (irq == IRQ_NONE) {
dev_dbg(&dev->dev, dev_dbg(&dev->dev,
"PCI parallel port detected: I/O at %#lx(%#lx)\n", "PCI parallel port detected: I/O at %#lx(%#lx)\n",
io_lo, io_hi); io_lo, io_hi);
irq = PARPORT_IRQ_NONE; irq = PARPORT_IRQ_NONE;
} else { } else {
dev_dbg(&dev->dev, dev_dbg(&dev->dev,
"PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n", "PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n",
io_lo, io_hi, irq); io_lo, io_hi, irq);
} }
port = parport_pc_probe_port (io_lo, io_hi, irq, port = parport_pc_probe_port (io_lo, io_hi, irq,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册