mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 11:44:39 -04:00
staging: comedi: usbduxfast: convert pr_err() to dev_err()
Use dev_err() to output the error message and remove the unnecessary pr_fmt() macro. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6b362f5bea
commit
42f4acdf30
@@ -33,8 +33,6 @@
|
||||
* udev coldplug problem
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
@@ -275,8 +273,9 @@ static void usbduxfast_ai_interrupt(struct urb *urb)
|
||||
return;
|
||||
|
||||
default:
|
||||
pr_err("non-zero urb status received in ai intr context: %d\n",
|
||||
urb->status);
|
||||
dev_err(dev->class_dev,
|
||||
"non-zero urb status received in ai intr context: %d\n",
|
||||
urb->status);
|
||||
async->events |= COMEDI_CB_EOA;
|
||||
async->events |= COMEDI_CB_ERROR;
|
||||
comedi_event(dev, s);
|
||||
|
||||
Reference in New Issue
Block a user