[PATCH 9/9] Staging: comedi: fix printk issue in pcl818.c

From: Ravishankar
Date: Mon Jul 11 2011 - 03:20:42 EST


From: Ravishankar <ravi.shankar@xxxxxxxxxxxxxxx>

This is a patch to the pcl818.c file that fixes up a printk() warning found by the checkpatch.pl tool

Signed-off-by: Ravishankar <ravishankarkm32@xxxxxxxxx>
---
drivers/staging/comedi/drivers/pcl818.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/staging/comedi/drivers/pcl818.c
index 21f1cc9..2fdb8c9 100644
--- a/drivers/staging/comedi/drivers/pcl818.c
+++ b/drivers/staging/comedi/drivers/pcl818.c
@@ -1534,7 +1534,7 @@ static int pcl818_ai_cancel(struct comedi_device *dev,
}

end:
- printk("pcl818_ai_cancel() end\n");
+ printk(KERN_INFO "pcl818_ai_cancel() end\n");
return 0;
}

@@ -1738,7 +1738,7 @@ static int pcl818_attach(struct comedi_device *dev, struct comedi_devconfig *it)

/* claim our I/O space */
iobase = it->options[0];
- printk("comedi%d: pcl818: board=%s, ioport=0x%03lx",
+ printk(KERN_INFO "comedi%d: pcl818: board=%s, ioport=0x%03lx",
dev->minor, this_board->name, iobase);
devpriv->io_range = this_board->io_range;
if ((this_board->fifo) && (it->options[2] == -1)) { /* we've board with FIFO and we want to use FIFO */
@@ -1753,7 +1753,7 @@ static int pcl818_attach(struct comedi_device *dev, struct comedi_devconfig *it)
dev->iobase = iobase;

if (pcl818_check(iobase)) {
- printk(", I can't detect board. FAIL!\n");
+ printk(KERN_ERR ", I can't detect board. FAIL!\n");
return -EIO;
}

--
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/