staging: comedi: s626: convert a printk()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 8 Oct 2013 18:06:18 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:34:18 +0000 (15:34 -0700)
Convert a printk() to a dev_err().

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c

index 99d1bed395ecce92e7ed869c29ca80da56f15a7b..e59769d5b219ac58504517e8cec06e9f50a31775 100644 (file)
@@ -1392,8 +1392,8 @@ static int s626_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        int tick;
 
        if (devpriv->ai_cmd_running) {
-               printk(KERN_ERR "s626_ai_cmd: Another ai_cmd is running %d\n",
-                      dev->minor);
+               dev_err(dev->class_dev,
+                       "s626_ai_cmd: Another ai_cmd is running\n");
                return -EBUSY;
        }
        /* disable interrupt */