Skip to content

Commit

Permalink
Staging: comedi: fix printk issue in das1800.c
Browse files Browse the repository at this point in the history
This is a patch to the das1800.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Included KERN_facility levels for printk.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ravishankar karkala Mallikarjunayya authored and Greg Kroah-Hartman committed Dec 14, 2011
1 parent 6c6c227 commit 7cf372b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/comedi/drivers/das1800.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,17 +632,17 @@ static int das1800_attach(struct comedi_device *dev,
if (alloc_private(dev, sizeof(struct das1800_private)) < 0)
return -ENOMEM;

printk("comedi%d: %s: io 0x%lx", dev->minor, driver_das1800.driver_name,
iobase);
printk(KERN_DEBUG "comedi%d: %s: io 0x%lx", dev->minor,
driver_das1800.driver_name, iobase);
if (irq) {
printk(", irq %u", irq);
printk(KERN_CONT ", irq %u", irq);
if (dma0) {
printk(", dma %u", dma0);
printk(KERN_CONT ", dma %u", dma0);
if (dma1)
printk(" and %u", dma1);
printk(KERN_CONT " and %u", dma1);
}
}
printk("\n");
printk(KERN_CONT "\n");

if (iobase == 0) {
printk(" io base address required\n");
Expand Down

0 comments on commit 7cf372b

Please sign in to comment.