Commit 8522e70b authored by Maurice Dawson's avatar Maurice Dawson Committed by Greg Kroah-Hartman

Staging: comedi: fix printk() coding style issue in adl_pci9111.c

This is a patch to the adl_pci9111.c file that fixes all, printk() should
include KERN-facility level, warnings found by the checkpatch.pl tool
Signed-off-by: default avatarMaurice Dawson <mauricedawson2699@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4f10d883
...@@ -1292,7 +1292,8 @@ static int pci9111_attach(struct comedi_device *dev, ...@@ -1292,7 +1292,8 @@ static int pci9111_attach(struct comedi_device *dev,
return -ENOMEM; return -ENOMEM;
/* Probe the device to determine what device in the series it is. */ /* Probe the device to determine what device in the series it is. */
printk("comedi%d: " PCI9111_DRIVER_NAME " driver\n", dev->minor); printk(KERN_ERR "comedi%d: " PCI9111_DRIVER_NAME " driver\n",
dev->minor);
for_each_pci_dev(pci_device) { for_each_pci_dev(pci_device) {
if (pci_device->vendor == PCI_VENDOR_ID_ADLINK) { if (pci_device->vendor == PCI_VENDOR_ID_ADLINK) {
...@@ -1325,13 +1326,14 @@ static int pci9111_attach(struct comedi_device *dev, ...@@ -1325,13 +1326,14 @@ static int pci9111_attach(struct comedi_device *dev,
} }
} }
printk("comedi%d: no supported board found! (req. bus/slot : %d/%d)\n", printk(KERN_ERR
dev->minor, it->options[0], it->options[1]); "comedi%d: no supported board found! (req. bus/slot : %d/%d)\n",
dev->minor, it->options[0], it->options[1]);
return -EIO; return -EIO;
found: found:
printk("comedi%d: found %s (b:s:f=%d:%d:%d) , irq=%d\n", printk(KERN_ERR "comedi%d: found %s (b:s:f=%d:%d:%d) , irq=%d\n",
dev->minor, dev->minor,
pci9111_boards[i].name, pci9111_boards[i].name,
pci_device->bus->number, pci_device->bus->number,
...@@ -1362,7 +1364,7 @@ static int pci9111_attach(struct comedi_device *dev, ...@@ -1362,7 +1364,7 @@ static int pci9111_attach(struct comedi_device *dev,
io_base = pci_resource_start(pci_device, 2); io_base = pci_resource_start(pci_device, 2);
io_range = pci_resource_len(pci_device, 2); io_range = pci_resource_len(pci_device, 2);
printk("comedi%d: 6503 registers at address 0x%4lx [0x%4lx]\n", printk(KERN_ERR "comedi%d: 6503 registers at address 0x%4lx [0x%4lx]\n",
dev->minor, io_base, io_range); dev->minor, io_base, io_range);
dev->iobase = io_base; dev->iobase = io_base;
...@@ -1380,8 +1382,9 @@ static int pci9111_attach(struct comedi_device *dev, ...@@ -1380,8 +1382,9 @@ static int pci9111_attach(struct comedi_device *dev,
if (pci_device->irq > 0) { if (pci_device->irq > 0) {
if (request_irq(pci_device->irq, pci9111_interrupt, if (request_irq(pci_device->irq, pci9111_interrupt,
IRQF_SHARED, PCI9111_DRIVER_NAME, dev) != 0) { IRQF_SHARED, PCI9111_DRIVER_NAME, dev) != 0) {
printk("comedi%d: unable to allocate irq %u\n", printk(KERN_ERR
dev->minor, pci_device->irq); "comedi%d: unable to allocate irq %u\n",
dev->minor, pci_device->irq);
return -EINVAL; return -EINVAL;
} }
} }
......
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