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

ACPI: sbshc: Unify the message printing

Using pr_fmt() and pr_*() macros to unify the message printing.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Hanjun Guo and committed by
Rafael J. Wysocki
bd10c13b 86ca3b0a

+4 -4
+4 -4
drivers/acpi/sbshc.c
··· 5 5 * Copyright (c) 2007 Alexey Starikovskiy 6 6 */ 7 7 8 + #define pr_fmt(fmt) "ACPI: " fmt 9 + 8 10 #include <linux/acpi.h> 9 11 #include <linux/wait.h> 10 12 #include <linux/slab.h> ··· 14 12 #include <linux/module.h> 15 13 #include <linux/interrupt.h> 16 14 #include "sbshc.h" 17 - 18 - #define PREFIX "ACPI: " 19 15 20 16 #define ACPI_SMB_HC_CLASS "smbus_host_ctl" 21 17 #define ACPI_SMB_HC_DEVICE_NAME "ACPI SMBus HC" ··· 109 109 u8 temp, sz = 0; 110 110 111 111 if (!hc) { 112 - printk(KERN_ERR PREFIX "host controller is not configured\n"); 112 + pr_err("host controller is not configured\n"); 113 113 return ret; 114 114 } 115 115 ··· 254 254 255 255 status = acpi_evaluate_integer(device->handle, "_EC", NULL, &val); 256 256 if (ACPI_FAILURE(status)) { 257 - printk(KERN_ERR PREFIX "error obtaining _EC.\n"); 257 + pr_err("error obtaining _EC.\n"); 258 258 return -EIO; 259 259 } 260 260