From: Stefan Hajnoczi Date: Fri, 11 Jan 2013 22:08:11 +0000 (+0100) Subject: staging: line6: use pr_err() instead of printk(KERN_ERR, ...) X-Git-Tag: firefly_0821_release~3680^2~1080^2~480 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4d3f50e4e5b423058f9eb47077837f975162ac24;p=firefly-linux-kernel-4.4.55.git staging: line6: use pr_err() instead of printk(KERN_ERR, ...) 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/line6/driver.h b/drivers/staging/line6/driver.h index 1dd768c26990..2e0f1341ee26 100644 --- a/drivers/staging/line6/driver.h +++ b/drivers/staging/line6/driver.h @@ -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) \