Skip to content

Commit

Permalink
Staging: comedi: pcmad: [PATCH 3/3] cleanup printk() warnings
Browse files Browse the repository at this point in the history
cleanup printk() warnings for including the facility level.
cleanup add a printk("\n") to terminate the print for the non-error case.


Signed-off-by: Bruce Beare <bbeare1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bruce Beare authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 71a74bd commit fcc55b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/comedi/drivers/pcmad.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,12 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it)
unsigned long iobase;

iobase = it->options[0];
printk("comedi%d: pcmad: 0x%04lx ", dev->minor, iobase);
printk(KERN_NOTICE "comedi%d: pcmad: 0x%04lx ", dev->minor, iobase);
if (!request_region(iobase, PCMAD_SIZE, "pcmad")) {
printk("I/O port conflict\n");
printk(KERN_CONT "I/O port conflict\n");
return -EIO;
}
printk(KERN_CONT "\n");
dev->iobase = iobase;

ret = alloc_subdevices(dev, 1);
Expand All @@ -165,7 +166,7 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it)

static int pcmad_detach(struct comedi_device *dev)
{
printk("comedi%d: pcmad: remove\n", dev->minor);
printk(KERN_NOTICE "comedi%d: pcmad: remove\n", dev->minor);

if (dev->irq)
free_irq(dev->irq, dev);
Expand Down

0 comments on commit fcc55b3

Please sign in to comment.