staging: comedi: hwdrv_apci3501: change printk to dev_err
authorChase Southwood <chase.southwood@gmail.com>
Mon, 1 Sep 2014 03:36:11 +0000 (22:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Sep 2014 17:49:28 +0000 (10:49 -0700)
dev_err() is preferred to printk() in device drivers.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c

index e82c3fcd048bf2fa1c4d215327c2257c1660dbf6..339519a3d6b55021d87b7c7107922f63be8d1827 100644 (file)
@@ -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;
 }
This page took 0.025072 seconds and 5 git commands to generate.