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

ACPI: cmos_rtc: Using pr_fmt() and remove PREFIX

Introduce pr_fmt() and remove printk PREFIX to unify the
log 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
606e56c6 614124be

+4 -2
+4 -2
drivers/acpi/acpi_cmos_rtc.c
··· 6 6 * Authors: Lan Tianyu <tianyu.lan@intel.com> 7 7 */ 8 8 9 + #define pr_fmt(fmt) "ACPI: " fmt 10 + 9 11 #include <linux/acpi.h> 10 12 #include <linux/device.h> 11 13 #include <linux/err.h> ··· 61 59 &acpi_cmos_rtc_space_handler, 62 60 NULL, NULL); 63 61 if (ACPI_FAILURE(status)) { 64 - pr_err(PREFIX "Error installing CMOS-RTC region handler\n"); 62 + pr_err("Error installing CMOS-RTC region handler\n"); 65 63 return -ENODEV; 66 64 } 67 65 ··· 72 70 { 73 71 if (ACPI_FAILURE(acpi_remove_address_space_handler(adev->handle, 74 72 ACPI_ADR_SPACE_CMOS, &acpi_cmos_rtc_space_handler))) 75 - pr_err(PREFIX "Error removing CMOS-RTC region handler\n"); 73 + pr_err("Error removing CMOS-RTC region handler\n"); 76 74 } 77 75 78 76 static struct acpi_scan_handler cmos_rtc_handler = {