thermal: intel: int3403: replace printk(KERN_WARN...) with pr_warn(...)
authorRishi Gupta <gupt21@gmail.com>
Fri, 23 Aug 2019 01:31:42 +0000 (07:01 +0530)
committerZhang Rui <rui.zhang@intel.com>
Tue, 24 Sep 2019 01:53:03 +0000 (09:53 +0800)
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>
drivers/thermal/intel/int340x_thermal/int3403_thermal.c

index f5749d4..a7bbd85 100644 (file)
@@ -181,7 +181,7 @@ static int int3403_cdev_add(struct int3403_priv *priv)
 
        p = buf.pointer;
        if (!p || (p->type != ACPI_TYPE_PACKAGE)) {
-               printk(KERN_WARNING "Invalid PPSS data\n");
+               pr_warn("Invalid PPSS data\n");
                kfree(buf.pointer);
                return -EFAULT;
        }