From 2292d64c53e8acd4980eb3688c088e00fe8bf98b Mon Sep 17 00:00:00 2001 From: Chase Southwood Date: Sun, 31 Aug 2014 22:36:11 -0500 Subject: [PATCH] staging: comedi: hwdrv_apci3501: change printk to dev_err dev_err() is preferred to printk() in device drivers. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Cc: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c index e82c3fcd048b..339519a3d6b5 100644 --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c @@ -168,7 +168,7 @@ static int apci3501_read_insn_timer(struct comedi_device *dev, else if ((devpriv->b_TimerSelectMode != ADDIDATA_TIMER) && (devpriv->b_TimerSelectMode != ADDIDATA_WATCHDOG)) { - printk("\nIn ReadTimerCounterWatchdog :: Invalid Subdevice \n"); + dev_err(dev->class_dev, "Invalid subdevice.\n"); } return insn->n; } -- 2.30.2