staging: comedi: range: remove use of DPRINTK
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Nov 2013 17:45:58 +0000 (10:45 -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.

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

index 8fde55495d34bf60e7a83d6f690802f86e79ef76..46b3da686384eac270221784c0ce3372b1a36d56 100644 (file)
@@ -83,8 +83,10 @@ int do_rangeinfo_ioctl(struct comedi_device *dev,
        }
 
        if (RANGE_LENGTH(it.range_type) != lr->length) {
-               DPRINTK("wrong length %d should be %d (0x%08x)\n",
-                       RANGE_LENGTH(it.range_type), lr->length, it.range_type);
+               dev_dbg(dev->class_dev,
+                       "wrong length %d should be %d (0x%08x)\n",
+                       RANGE_LENGTH(it.range_type),
+                       lr->length, it.range_type);
                return -EINVAL;
        }
 
@@ -123,7 +125,8 @@ static int aref_invalid(struct comedi_subdevice *s, unsigned int chanspec)
        default:
                break;
        }
-       DPRINTK("subdevice does not support aref %i", aref);
+       dev_dbg(s->device->class_dev, "subdevice does not support aref %i",
+               aref);
        return 1;
 }