From: Ian Abbott Date: Tue, 8 Oct 2013 18:06:18 +0000 (+0100) Subject: staging: comedi: s626: convert a printk() X-Git-Tag: v3.13-rc1~170^2~366 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=730b8e15574687f03b9cf84b1ea5134648e6929b;p=kernel%2Fkernel-generic.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 99d1bed..e59769d 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 */