aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/comedi/range.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-11-22 10:45:58 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-25 11:50:53 -0800
commit2cde476df4155a89342a6cdf27581a4c811689b7 (patch)
treed769c435bc2b9d24e7a07bbf1fdf5b891dbdfab8 /drivers/staging/comedi/range.c
parentstaging: comedi: remove comedi_debug module parameter (diff)
downloadwireguard-linux-2cde476df4155a89342a6cdf27581a4c811689b7.tar.xz
wireguard-linux-2cde476df4155a89342a6cdf27581a4c811689b7.zip
staging: comedi: range: remove use of DPRINTK
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>
Diffstat (limited to 'drivers/staging/comedi/range.c')
-rw-r--r--drivers/staging/comedi/range.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/staging/comedi/range.c b/drivers/staging/comedi/range.c
index 8fde55495d34..46b3da686384 100644
--- a/drivers/staging/comedi/range.c
+++ b/drivers/staging/comedi/range.c
@@ -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;
}