From: Ian Abbott Date: Tue, 8 Oct 2013 18:06:18 +0000 (+0100) Subject: staging: comedi: s626: convert a printk() X-Git-Tag: next-20131017~19^2~153 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=730b8e15574687f03b9cf84b1ea5134648e6929b;p=karo-tx-linux.git staging: comedi: s626: convert a printk() Convert a printk() to a dev_err(). Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c index 99d1bed395ec..e59769d5b219 100644 --- a/drivers/staging/comedi/drivers/s626.c +++ b/drivers/staging/comedi/drivers/s626.c @@ -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 */