Skip to content

Commit

Permalink
staging: line6: use pr_err() instead of printk(KERN_ERR, ...)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Hajnoczi authored and Greg Kroah-Hartman committed Jan 12, 2013
1 parent bc776f2 commit 4d3f50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/line6/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 4d3f50e

Please sign in to comment.