staging: line6: use pr_err() instead of printk(KERN_ERR, ...)
authorStefan Hajnoczi <stefanha@gmail.com>
Fri, 11 Jan 2013 22:08:11 +0000 (23:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jan 2013 00:40:50 +0000 (16:40 -0800)
Fix the following checkpatch.pl warning:

  WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...
  #1861: FILE: staging/line6/driver.h:56:
  +       printk(KERN_ERR "line6usb driver bug: missing case in %s:%d\n", \

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/driver.h

index 1dd768c26990ae3911ce3eeb7b28f7484797a476..2e0f1341ee26381e981e51d45a506eb3f49e22fc 100644 (file)
@@ -53,7 +53,7 @@
 #define LINE6_CHANNEL_MASK 0x0f
 
 #define MISSING_CASE   \
-       printk(KERN_ERR "line6usb driver bug: missing case in %s:%d\n", \
+       pr_err("line6usb driver bug: missing case in %s:%d\n", \
                __FILE__, __LINE__)
 
 #define CHECK_RETURN(x)                \