staging:comedi: Use pr_ or dev_ printks in drivers/usbduxfaxt.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Fri, 26 Oct 2012 22:25:53 +0000 (07:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 22:52:10 +0000 (15:52 -0700)
fixed below checkpatch warnings.
-WARNING: printk() should include KERN_ facility level

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxfast.c

index 060d853dc6519afa3e17a35b23cfe16e70709034..b4e987b892ace672c35000b5fdbbc189929593b8 100644 (file)
@@ -370,9 +370,8 @@ static void usbduxfastsub_ai_Irq(struct urb *urb)
                return;
 
        default:
-               printk("comedi%d: usbduxfast: non-zero urb status received in "
-                      "ai intr context: %d\n",
-                      udfs->comedidev->minor, urb->status);
+               pr_err("non-zero urb status received in ai intr context: %d\n",
+                      urb->status);
                s->async->events |= COMEDI_CB_EOA;
                s->async->events |= COMEDI_CB_ERROR;
                comedi_event(udfs->comedidev, s);
@@ -454,7 +453,8 @@ static int usbduxfastsub_start(struct usbduxfastsub_s *udfs)
                              1,      /* Length */
                              EZTIMEOUT);    /* Timeout */
        if (ret < 0) {
-               printk("comedi_: usbduxfast_: control msg failed (start)\n");
+               dev_err(&udfs->interface->dev,
+                       "control msg failed (start)\n");
                return ret;
        }