From 6fcd2b697cc783894e02a42fe773da2efac5635e Mon Sep 17 00:00:00 2001 From: Chase Southwood Date: Tue, 18 Feb 2014 00:34:39 -0600 Subject: [PATCH] Staging: comedi: addi-data: convert printk() to dev_err() This patch for hwdrv_apci035.c changes a printk() call to a dev_err() call since this is generally preferred. It also removes a newline from the start of the error message. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c index 90d58017f43a..ff64540bdf7c 100644 --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c @@ -227,7 +227,7 @@ static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev, ui_Command = ui_Command & 0xFFF819E2UL; } else { - printk("\n The parameter for Timer/watchdog selection is in error\n"); + dev_err(dev->class_dev, "The parameter for Timer/watchdog selection is in error\n"); return -EINVAL; } } -- 2.34.1