diff options
author | Fjodor Schelichow <fjodor.schelichow@hotmail.com> | 2014-06-19 02:52:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-19 17:46:51 -0700 |
commit | 1fda5690906b20ce823964eaac32baa8d3a03f61 (patch) | |
tree | f321cdbd005d4b58ae3a13b5598d82062a3694b3 /drivers/w1/masters/ds2482.c | |
parent | fdc9167a7853523647ed0b19d719256c56f1f685 (diff) | |
download | linux-1fda5690906b20ce823964eaac32baa8d3a03f61.tar.gz linux-1fda5690906b20ce823964eaac32baa8d3a03f61.tar.bz2 linux-1fda5690906b20ce823964eaac32baa8d3a03f61.zip |
w1/masters: use pr_* instead of printk
This patch replaces all calls to the "printk" function within the "masters"
subdirectory 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/masters/ds2482.c')
-rw-r--r-- | drivers/w1/masters/ds2482.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1/masters/ds2482.c b/drivers/w1/masters/ds2482.c index e033491fe308..e76a9b39abb2 100644 --- a/drivers/w1/masters/ds2482.c +++ b/drivers/w1/masters/ds2482.c @@ -226,7 +226,7 @@ static int ds2482_wait_1wire_idle(struct ds2482_data *pdev) } if (retries >= DS2482_WAIT_IDLE_TIMEOUT) - printk(KERN_ERR "%s: timeout on channel %d\n", + pr_err("%s: timeout on channel %d\n", __func__, pdev->channel); return temp; |