]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: usbduxfast: convert pr_err() to dev_err()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 17 Jul 2014 19:27:28 +0000 (12:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 01:00:42 +0000 (18:00 -0700)
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>
drivers/staging/comedi/drivers/usbduxfast.c

index 85f9dcf59403f7d0551bd66d9f33626df9093424..2490e88e7f32fb782d61848269017840c21854ed 100644 (file)
@@ -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);