diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-11-26 18:41:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 12:20:19 -0500 |
commit | 84f03cf1d5912da90eca069a3458a3aea5d5fa8a (patch) | |
tree | 57290a1dbba633b08a5c84552b46ba026bfb2438 | |
parent | 5e1503aea7f46dcd5ebc2b929d7368a2f175bfb8 (diff) |
staging: comedi: pcl818: convert some printk's to dev_dbg()
Convert these messages to dev_dbg() and 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>
-rw-r--r-- | drivers/staging/comedi/drivers/pcl818.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/staging/comedi/drivers/pcl818.c index be9cb8df877d..def79c5b1a66 100644 --- a/drivers/staging/comedi/drivers/pcl818.c +++ b/drivers/staging/comedi/drivers/pcl818.c | |||
@@ -910,10 +910,10 @@ static int check_channel_list(struct comedi_device *dev, | |||
910 | nowmustbechan = | 910 | nowmustbechan = |
911 | (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; | 911 | (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; |
912 | if (nowmustbechan != CR_CHAN(chanlist[i])) { /* channel list isn't continuous :-( */ | 912 | if (nowmustbechan != CR_CHAN(chanlist[i])) { /* channel list isn't continuous :-( */ |
913 | printk | 913 | dev_dbg(dev->class_dev, |
914 | ("comedi%d: pcl818: channel list must be continuous! chanlist[%i]=%d but must be %d or %d!\n", | 914 | "channel list must be continuous! chanlist[%i]=%d but must be %d or %d!\n", |
915 | dev->minor, i, CR_CHAN(chanlist[i]), | 915 | i, CR_CHAN(chanlist[i]), nowmustbechan, |
916 | nowmustbechan, CR_CHAN(chanlist[0])); | 916 | CR_CHAN(chanlist[0])); |
917 | return 0; | 917 | return 0; |
918 | } | 918 | } |
919 | /* well, this is next correct channel in list */ | 919 | /* well, this is next correct channel in list */ |
@@ -924,14 +924,14 @@ static int check_channel_list(struct comedi_device *dev, | |||
924 | for (i = 0, segpos = 0; i < n_chan; i++) { | 924 | for (i = 0, segpos = 0; i < n_chan; i++) { |
925 | /* printk("%d %d=%d %d\n",CR_CHAN(chansegment[i%seglen]),CR_RANGE(chansegment[i%seglen]),CR_CHAN(it->chanlist[i]),CR_RANGE(it->chanlist[i])); */ | 925 | /* printk("%d %d=%d %d\n",CR_CHAN(chansegment[i%seglen]),CR_RANGE(chansegment[i%seglen]),CR_CHAN(it->chanlist[i]),CR_RANGE(it->chanlist[i])); */ |
926 | if (chanlist[i] != chansegment[i % seglen]) { | 926 | if (chanlist[i] != chansegment[i % seglen]) { |
927 | printk | 927 | dev_dbg(dev->class_dev, |
928 | ("comedi%d: pcl818: bad channel or range number! chanlist[%i]=%d,%d,%d and not %d,%d,%d!\n", | 928 | "bad channel or range number! chanlist[%i]=%d,%d,%d and not %d,%d,%d!\n", |
929 | dev->minor, i, CR_CHAN(chansegment[i]), | 929 | i, CR_CHAN(chansegment[i]), |
930 | CR_RANGE(chansegment[i]), | 930 | CR_RANGE(chansegment[i]), |
931 | CR_AREF(chansegment[i]), | 931 | CR_AREF(chansegment[i]), |
932 | CR_CHAN(chanlist[i % seglen]), | 932 | CR_CHAN(chanlist[i % seglen]), |
933 | CR_RANGE(chanlist[i % seglen]), | 933 | CR_RANGE(chanlist[i % seglen]), |
934 | CR_AREF(chansegment[i % seglen])); | 934 | CR_AREF(chansegment[i % seglen])); |
935 | return 0; /* chan/gain list is strange */ | 935 | return 0; /* chan/gain list is strange */ |
936 | } | 936 | } |
937 | } | 937 | } |