staging: comedi: pcl812: convert some printk's to dev_dbg()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:35 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:19 +0000 (09:20 -0800)
Convert these debug messages to dev_dbg() and tidy them up a bit.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl812.c

index 03315abcca1918ab8887caf2ac6739ec4fd76376..e31cf44faa332f7e7e5144ee1dc133a24c3b460f 100644 (file)
@@ -404,9 +404,7 @@ static int pcl812_ai_insn_read(struct comedi_device *dev,
                                goto conv_finish;
                        udelay(1);
                }
-               printk
-                   ("comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeout\n",
-                    dev->minor, dev->board_name, dev->iobase);
+               dev_dbg(dev->class_dev, "A/D insn read timeout\n");
                outb(devpriv->mode_reg_int | 0, dev->iobase + PCL812_MODE);
                return -ETIME;
 
@@ -441,9 +439,7 @@ static int acl8216_ai_insn_read(struct comedi_device *dev,
                                goto conv_finish;
                        udelay(1);
                }
-               printk
-                   ("comedi%d: pcl812: (%s at 0x%lx) A/D insn read timeout\n",
-                    dev->minor, dev->board_name, dev->iobase);
+               dev_dbg(dev->class_dev, "A/D insn read timeout\n");
                outb(0, dev->iobase + PCL812_MODE);
                return -ETIME;
 
@@ -786,10 +782,7 @@ static irqreturn_t interrupt_pcl812_ai_int(int irq, void *d)
        }
 
        if (err) {
-               printk
-                   ("comedi%d: pcl812: (%s at 0x%lx) "
-                    "A/D cmd IRQ without DRDY!\n",
-                    dev->minor, dev->board_name, dev->iobase);
+               dev_dbg(dev->class_dev, "A/D cmd IRQ without DRDY!\n");
                pcl812_ai_cancel(dev, s);
                s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
                comedi_event(dev, s);