mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-17 03:58:36 +00:00
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: Nikola Ciprich <nikola.ciprich@linuxbox.cz> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
96edf5376e
commit
82dfabf1c4
1 changed files with 5 additions and 6 deletions
|
@ -571,9 +571,8 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue