]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: dt2815: convert printk's in dt2815_ao_insn()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:57 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:21 +0000 (09:20 -0800)
Convert the printk(KERN_WARNING messages in this function to dev_dbg().

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/dt2815.c

index 34040f0175e88d9433c63014a54a78a1c7052da2..1a4caada56205b7766ba23945aeb06bdd5f3417e 100644 (file)
@@ -107,8 +107,9 @@ static int dt2815_ao_insn(struct comedi_device *dev, struct comedi_subdevice *s,
 
                status = dt2815_wait_for_status(dev, 0x00);
                if (status != 0) {
-                       printk(KERN_WARNING "dt2815: failed to write low byte "
-                              "on %d reason %x\n", chan, status);
+                       dev_dbg(dev->class_dev,
+                               "failed to write low byte on %d reason %x\n",
+                               chan, status);
                        return -EBUSY;
                }
 
@@ -116,8 +117,9 @@ static int dt2815_ao_insn(struct comedi_device *dev, struct comedi_subdevice *s,
 
                status = dt2815_wait_for_status(dev, 0x10);
                if (status != 0x10) {
-                       printk(KERN_WARNING "dt2815: failed to write high byte "
-                              "on %d reason %x\n", chan, status);
+                       dev_dbg(dev->class_dev,
+                               "failed to write high byte on %d reason %x\n",
+                               chan, status);
                        return -EBUSY;
                }
                devpriv->ao_readback[chan] = data[i];