mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
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>
This commit is contained in:
parent
d2601699d3
commit
2cde476df4
@ -83,8 +83,10 @@ int do_rangeinfo_ioctl(struct comedi_device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (RANGE_LENGTH(it.range_type) != lr->length) {
|
if (RANGE_LENGTH(it.range_type) != lr->length) {
|
||||||
DPRINTK("wrong length %d should be %d (0x%08x)\n",
|
dev_dbg(dev->class_dev,
|
||||||
RANGE_LENGTH(it.range_type), lr->length, it.range_type);
|
"wrong length %d should be %d (0x%08x)\n",
|
||||||
|
RANGE_LENGTH(it.range_type),
|
||||||
|
lr->length, it.range_type);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,7 +125,8 @@ static int aref_invalid(struct comedi_subdevice *s, unsigned int chanspec)
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DPRINTK("subdevice does not support aref %i", aref);
|
dev_dbg(s->device->class_dev, "subdevice does not support aref %i",
|
||||||
|
aref);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user