staging: comedi: amplc_pci224: remove use of DPRINTK
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Nov 2013 17:46:42 +0000 (10:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:50:53 +0000 (11:50 -0800)
Use dev_dbg() instead of the DPRINTK macro to output the comedi
debugging information.

The dev_dbg() will prefix the messages appropriately so remove the
"comedi%d: " DRIVER_NAME portion and use __func__ to show the actual
function name for debugging.

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

index 810e397d8fd7009a25f93c49cc0a076283af7fa7..dcccdce53c185bb5e07b78b2811764906f0620eb 100644 (file)
@@ -909,16 +909,14 @@ pci224_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
                }
                if (errors) {
                        if (errors & dupchan_err) {
-                               DPRINTK("comedi%d: " DRIVER_NAME
-                                       ": ao_cmdtest: "
-                                       "entries in chanlist must contain no "
-                                       "duplicate channels\n", dev->minor);
+                               dev_dbg(dev->class_dev,
+                                       "%s: entries in chanlist must contain no duplicate channels\n",
+                                       __func__);
                        }
                        if (errors & range_err) {
-                               DPRINTK("comedi%d: " DRIVER_NAME
-                                       ": ao_cmdtest: "
-                                       "entries in chanlist must all have "
-                                       "the same range index\n", dev->minor);
+                               dev_dbg(dev->class_dev,
+                                       "%s: entries in chanlist must all have the same range index\n",
+                                       __func__);
                        }
                        err++;
                }