diff options
author | Fjodor Schelichow <fjodor.schelichow@hotmail.com> | 2014-06-18 20:52:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-19 20:46:51 -0400 |
commit | fdc9167a7853523647ed0b19d719256c56f1f685 (patch) | |
tree | 431a7d7bbf787fa82ff1f6ac99027d989c3ddd5d /drivers/w1/w1_log.h | |
parent | ea022eac1e297bbf725c1e484726b4c8fb09dd80 (diff) |
w1: use pr_* instead of printk
This patch replaces all calls to the "printk" function within the main "w1"
directory by calls to the appropriate "pr_*" function thus addressing
the following warning generated by the checkpatch script:
WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ...
then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
Signed-off-by: Fjodor Schelichow <fjodor.schelichow@hotmail.com>
Signed-off-by: Roman Sommer <romsom2@yahoo.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/w1_log.h')
-rw-r--r-- | drivers/w1/w1_log.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/w1/w1_log.h b/drivers/w1/w1_log.h index 9c7bd62e6bdc..f9eecff23b8d 100644 --- a/drivers/w1/w1_log.h +++ b/drivers/w1/w1_log.h | |||
@@ -29,8 +29,8 @@ | |||
29 | #else | 29 | #else |
30 | # define assert(expr) \ | 30 | # define assert(expr) \ |
31 | if(unlikely(!(expr))) { \ | 31 | if(unlikely(!(expr))) { \ |
32 | printk(KERN_ERR "Assertion failed! %s,%s,%s,line=%d\n", \ | 32 | pr_err("Assertion failed! %s,%s,%s,line=%d\n", \ |
33 | #expr, __FILE__, __func__, __LINE__); \ | 33 | #expr, __FILE__, __func__, __LINE__); \ |
34 | } | 34 | } |
35 | #endif | 35 | #endif |
36 | 36 | ||