staging: comedi: dt282x: convert dt282x_ai_dma_interrupt() messages
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:42:05 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:21 +0000 (09:20 -0800)
Convert the messages in this function to dev_{level}().

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>
drivers/staging/comedi/drivers/dt282x.c

index 822ce0259b0364ce5d0f1c2d37326f2105e8c0bb..c8df18ae40844afa38c7507e1b49ff5e724fe5bf 100644 (file)
@@ -348,7 +348,7 @@ static void dt282x_ai_dma_interrupt(struct comedi_device *dev)
        outw(devpriv->supcsr | DT2821_CLRDMADNE, dev->iobase + DT2821_SUPCSR);
 
        if (!s->async->prealloc_buf) {
-               printk(KERN_ERR "async->data disappeared.  dang!\n");
+               dev_err(dev->class_dev, "no buffer in %s\n", __func__);
                return;
        }
 
@@ -369,7 +369,7 @@ static void dt282x_ai_dma_interrupt(struct comedi_device *dev)
        devpriv->nread -= size / 2;
 
        if (devpriv->nread < 0) {
-               printk(KERN_INFO "dt282x: off by one\n");
+               dev_info(dev->class_dev, "nread off by one\n");
                devpriv->nread = 0;
        }
        if (!devpriv->nread) {