Staging: comedi: addi-data: convert printk() to dev_err()
authorChase Southwood <chase.southwood@yahoo.com>
Tue, 18 Feb 2014 06:34:39 +0000 (00:34 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:15:21 +0000 (11:15 -0800)
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 <chase.southwood@yahoo.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c

index 90d58017f43a81cbf5e1badff4a083dde6c98551..ff64540bdf7c6bc34278fae906a4c7ff4cdb772a 100644 (file)
@@ -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;
                }
        }