From: H Hartley Sweeten Date: Thu, 17 Jul 2014 19:27:28 +0000 (-0700) Subject: staging: comedi: usbduxfast: convert pr_err() to dev_err() X-Git-Tag: v3.17-rc1~123^2~547 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42f4acdf30121bc0f649875d55876eea9187100a;p=karo-tx-linux.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c index 85f9dcf59403..2490e88e7f32 100644 --- a/drivers/staging/comedi/drivers/usbduxfast.c +++ b/drivers/staging/comedi/drivers/usbduxfast.c @@ -33,8 +33,6 @@ * udev coldplug problem */ -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #include #include #include @@ -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);