Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

H Hartley Sweeten and committed by
Greg Kroah-Hartman
2cde476d d2601699

+6 -3
+6 -3
drivers/staging/comedi/range.c
··· 83 83 } 84 84 85 85 if (RANGE_LENGTH(it.range_type) != lr->length) { 86 - DPRINTK("wrong length %d should be %d (0x%08x)\n", 87 - RANGE_LENGTH(it.range_type), lr->length, it.range_type); 86 + dev_dbg(dev->class_dev, 87 + "wrong length %d should be %d (0x%08x)\n", 88 + RANGE_LENGTH(it.range_type), 89 + lr->length, it.range_type); 88 90 return -EINVAL; 89 91 } 90 92 ··· 125 123 default: 126 124 break; 127 125 } 128 - DPRINTK("subdevice does not support aref %i", aref); 126 + dev_dbg(s->device->class_dev, "subdevice does not support aref %i", 127 + aref); 129 128 return 1; 130 129 } 131 130