Skip to content

Commit

Permalink
staging:comedi: Use pr_ or dev_ printks in drivers/usbduxfaxt.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 26, 2012
1 parent 1481c5f commit 1bbffe7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/usbduxfast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 1bbffe7

Please sign in to comment.