Commit 0a783410 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: amplc_pci224: remove use of DPRINTK

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c001798a
...@@ -909,16 +909,14 @@ pci224_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s, ...@@ -909,16 +909,14 @@ pci224_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
} }
if (errors) { if (errors) {
if (errors & dupchan_err) { if (errors & dupchan_err) {
DPRINTK("comedi%d: " DRIVER_NAME dev_dbg(dev->class_dev,
": ao_cmdtest: " "%s: entries in chanlist must contain no duplicate channels\n",
"entries in chanlist must contain no " __func__);
"duplicate channels\n", dev->minor);
} }
if (errors & range_err) { if (errors & range_err) {
DPRINTK("comedi%d: " DRIVER_NAME dev_dbg(dev->class_dev,
": ao_cmdtest: " "%s: entries in chanlist must all have the same range index\n",
"entries in chanlist must all have " __func__);
"the same range index\n", dev->minor);
} }
err++; err++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment