mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-24 03:25:38 +00:00
staging: comedi: pcl816: convert some printk's to dev_dbg()
Convert these warning messages to dev_dbg() to minimize the noise. Also, tidy them up a bit. 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
5adbc856a7
commit
5e1503aea7
@ -800,10 +800,8 @@ check_channel_list(struct comedi_device *dev,
|
|||||||
(CR_CHAN(chansegment[i - 1]) + 1) % chanlen;
|
(CR_CHAN(chansegment[i - 1]) + 1) % chanlen;
|
||||||
if (nowmustbechan != CR_CHAN(chanlist[i])) {
|
if (nowmustbechan != CR_CHAN(chanlist[i])) {
|
||||||
/* channel list isn't continuous :-( */
|
/* channel list isn't continuous :-( */
|
||||||
printk(KERN_WARNING
|
dev_dbg(dev->class_dev,
|
||||||
"comedi%d: pcl816: channel list must "
|
"channel list must be continuous! chanlist[%i]=%d but must be %d or %d!\n",
|
||||||
"be continuous! chanlist[%i]=%d but "
|
|
||||||
"must be %d or %d!\n", dev->minor,
|
|
||||||
i, CR_CHAN(chanlist[i]), nowmustbechan,
|
i, CR_CHAN(chanlist[i]), nowmustbechan,
|
||||||
CR_CHAN(chanlist[0]));
|
CR_CHAN(chanlist[0]));
|
||||||
return 0;
|
return 0;
|
||||||
@ -815,11 +813,9 @@ check_channel_list(struct comedi_device *dev,
|
|||||||
/* check whole chanlist */
|
/* check whole chanlist */
|
||||||
for (i = 0, segpos = 0; i < chanlen; i++) {
|
for (i = 0, segpos = 0; i < chanlen; i++) {
|
||||||
if (chanlist[i] != chansegment[i % seglen]) {
|
if (chanlist[i] != chansegment[i % seglen]) {
|
||||||
printk(KERN_WARNING
|
dev_dbg(dev->class_dev,
|
||||||
"comedi%d: pcl816: bad channel or range"
|
"bad channel or range number! chanlist[%i]=%d,%d,%d and not %d,%d,%d!\n",
|
||||||
" number! chanlist[%i]=%d,%d,%d and not"
|
i, CR_CHAN(chansegment[i]),
|
||||||
" %d,%d,%d!\n", dev->minor, i,
|
|
||||||
CR_CHAN(chansegment[i]),
|
|
||||||
CR_RANGE(chansegment[i]),
|
CR_RANGE(chansegment[i]),
|
||||||
CR_AREF(chansegment[i]),
|
CR_AREF(chansegment[i]),
|
||||||
CR_CHAN(chanlist[i % seglen]),
|
CR_CHAN(chanlist[i % seglen]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user