Commit 96a1f91a authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: adv_pci1710: convert some printk's to dev_dbg()

Convert these debug messages to dev_dbg().
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15d20069
...@@ -740,16 +740,15 @@ static void interrupt_pci1710_every_sample(void *d) ...@@ -740,16 +740,15 @@ static void interrupt_pci1710_every_sample(void *d)
m = inw(dev->iobase + PCI171x_STATUS); m = inw(dev->iobase + PCI171x_STATUS);
if (m & Status_FE) { if (m & Status_FE) {
printk("comedi%d: A/D FIFO empty (%4x)\n", dev->minor, m); dev_dbg(dev->class_dev, "A/D FIFO empty (%4x)\n", m);
pci171x_ai_cancel(dev, s); pci171x_ai_cancel(dev, s);
s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
comedi_event(dev, s); comedi_event(dev, s);
return; return;
} }
if (m & Status_FF) { if (m & Status_FF) {
printk dev_dbg(dev->class_dev,
("comedi%d: A/D FIFO Full status (Fatal Error!) (%4x)\n", "A/D FIFO Full status (Fatal Error!) (%4x)\n", m);
dev->minor, m);
pci171x_ai_cancel(dev, s); pci171x_ai_cancel(dev, s);
s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
comedi_event(dev, s); comedi_event(dev, s);
...@@ -825,12 +824,12 @@ static int move_block_from_fifo(struct comedi_device *dev, ...@@ -825,12 +824,12 @@ static int move_block_from_fifo(struct comedi_device *dev,
sampl = inw(dev->iobase + PCI171x_AD_DATA); sampl = inw(dev->iobase + PCI171x_AD_DATA);
if (this_board->cardtype != TYPE_PCI1713) if (this_board->cardtype != TYPE_PCI1713)
if ((sampl & 0xf000) != devpriv->act_chanlist[j]) { if ((sampl & 0xf000) != devpriv->act_chanlist[j]) {
printk dev_dbg(dev->class_dev,
("comedi%d: A/D FIFO data dropout: received data from channel %d, expected %d! (%d/%d/%d/%d/%d/%4x)\n", "A/D FIFO data dropout: received data from channel %d, expected %d! (%d/%d/%d/%d/%d/%4x)\n",
dev->minor, (sampl & 0xf000) >> 12, (sampl & 0xf000) >> 12,
(devpriv->act_chanlist[j] & 0xf000) >> 12, (devpriv->act_chanlist[j] & 0xf000) >> 12,
i, j, devpriv->ai_act_scan, n, turn, i, j, devpriv->ai_act_scan, n, turn,
sampl); sampl);
pci171x_ai_cancel(dev, s); pci171x_ai_cancel(dev, s);
s->async->events |= s->async->events |=
COMEDI_CB_EOA | COMEDI_CB_ERROR; COMEDI_CB_EOA | COMEDI_CB_ERROR;
...@@ -865,17 +864,15 @@ static void interrupt_pci1710_half_fifo(void *d) ...@@ -865,17 +864,15 @@ static void interrupt_pci1710_half_fifo(void *d)
m = inw(dev->iobase + PCI171x_STATUS); m = inw(dev->iobase + PCI171x_STATUS);
if (!(m & Status_FH)) { if (!(m & Status_FH)) {
printk("comedi%d: A/D FIFO not half full! (%4x)\n", dev_dbg(dev->class_dev, "A/D FIFO not half full! (%4x)\n", m);
dev->minor, m);
pci171x_ai_cancel(dev, s); pci171x_ai_cancel(dev, s);
s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
comedi_event(dev, s); comedi_event(dev, s);
return; return;
} }
if (m & Status_FF) { if (m & Status_FF) {
printk dev_dbg(dev->class_dev,
("comedi%d: A/D FIFO Full status (Fatal Error!) (%4x)\n", "A/D FIFO Full status (Fatal Error!) (%4x)\n", m);
dev->minor, m);
pci171x_ai_cancel(dev, s); pci171x_ai_cancel(dev, s);
s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_EOA | COMEDI_CB_ERROR;
comedi_event(dev, s); comedi_event(dev, s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment