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

thermal: intel: int3403: replace printk(KERN_WARN...) with pr_warn(...)

Direct invocation of printk() is not preferred to emit logs.
This commit replaces printk(KERN_WARNING) with corresponding
pr_warn() function call.

Signed-off-by: Rishi Gupta <gupt21@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

authored by

Rishi Gupta and committed by
Zhang Rui
4c8a342c f639cff5

+1 -1
+1 -1
drivers/thermal/intel/int340x_thermal/int3403_thermal.c
··· 181 181 182 182 p = buf.pointer; 183 183 if (!p || (p->type != ACPI_TYPE_PACKAGE)) { 184 - printk(KERN_WARNING "Invalid PPSS data\n"); 184 + pr_warn("Invalid PPSS data\n"); 185 185 kfree(buf.pointer); 186 186 return -EFAULT; 187 187 }