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

leds: leds-clevo-mail: Use pr_* instead of printks

Silences checkpatch warnings related to the use of printks.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

authored by

Sachin Kamat and committed by
Bryan Wu
5c6f844c 7a0eff4d

+5 -6
+5 -6
drivers/leds/leds-clevo-mail.c
··· 1 + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 1 2 2 3 #include <linux/module.h> 3 4 ··· 27 26 28 27 static int __init clevo_mail_led_dmi_callback(const struct dmi_system_id *id) 29 28 { 30 - printk(KERN_INFO KBUILD_MODNAME ": '%s' found\n", id->ident); 29 + pr_info("'%s' found\n", id->ident); 31 30 return 1; 32 31 } 33 32 ··· 136 135 status = 0; 137 136 138 137 } else { 139 - printk(KERN_DEBUG KBUILD_MODNAME 140 - ": clevo_mail_led_blink(..., %lu, %lu)," 138 + pr_debug("clevo_mail_led_blink(..., %lu, %lu)," 141 139 " returning -EINVAL (unsupported)\n", 142 140 *delay_on, *delay_off); 143 141 } ··· 183 183 count = dmi_check_system(clevo_mail_led_dmi_table); 184 184 } else { 185 185 count = 1; 186 - printk(KERN_ERR KBUILD_MODNAME ": Skipping DMI detection. " 186 + pr_err("Skipping DMI detection. " 187 187 "If the driver works on your hardware please " 188 188 "report model and the output of dmidecode in tracker " 189 189 "at http://sourceforge.net/projects/clevo-mailled/\n"); ··· 197 197 error = platform_driver_probe(&clevo_mail_led_driver, 198 198 clevo_mail_led_probe); 199 199 if (error) { 200 - printk(KERN_ERR KBUILD_MODNAME 201 - ": Can't probe platform driver\n"); 200 + pr_err("Can't probe platform driver\n"); 202 201 platform_device_unregister(pdev); 203 202 } 204 203 } else