Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

w1/slaves: use pr_* instead of printk

This patch replaces all calls to the "printk" function within the "slaves"
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>

authored by

Fjodor Schelichow and committed by
Greg Kroah-Hartman
ea022eac 94859308

+1 -2
+1 -2
drivers/w1/slaves/w1_ds2760.c
··· 181 181 182 182 static int __init w1_ds2760_init(void) 183 183 { 184 - printk(KERN_INFO "1-Wire driver for the DS2760 battery monitor " 185 - " chip - (c) 2004-2005, Szabolcs Gyurko\n"); 184 + pr_info("1-Wire driver for the DS2760 battery monitor chip - (c) 2004-2005, Szabolcs Gyurko\n"); 186 185 ida_init(&bat_ida); 187 186 return w1_register_family(&w1_ds2760_family); 188 187 }