summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanjun Guo <guohanjun@huawei.com>2021-06-02 16:54:23 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-07 15:36:45 +0200
commit606e56c6eced3135aecd8144b6d57b4b49e7ef89 (patch)
treeb1099b14a06e4f161b77209604367d37c871548c
parent614124bea77e452aa6df7a8714e8bc820b489922 (diff)
downloadlinux-stable-606e56c6eced3135aecd8144b6d57b4b49e7ef89.tar.gz
linux-stable-606e56c6eced3135aecd8144b6d57b4b49e7ef89.tar.bz2
linux-stable-606e56c6eced3135aecd8144b6d57b4b49e7ef89.zip
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>
-rw-r--r--drivers/acpi/acpi_cmos_rtc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_cmos_rtc.c b/drivers/acpi/acpi_cmos_rtc.c
index 67f1d33d15c4..4cf4aef7ce0c 100644
--- a/drivers/acpi/acpi_cmos_rtc.c
+++ b/drivers/acpi/acpi_cmos_rtc.c
@@ -6,6 +6,8 @@
* Authors: Lan Tianyu <tianyu.lan@intel.com>
*/
+#define pr_fmt(fmt) "ACPI: " fmt
+
#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/err.h>
@@ -59,7 +61,7 @@ static int acpi_install_cmos_rtc_space_handler(struct acpi_device *adev,
&acpi_cmos_rtc_space_handler,
NULL, NULL);
if (ACPI_FAILURE(status)) {
- pr_err(PREFIX "Error installing CMOS-RTC region handler\n");
+ pr_err("Error installing CMOS-RTC region handler\n");
return -ENODEV;
}
@@ -70,7 +72,7 @@ static void acpi_remove_cmos_rtc_space_handler(struct acpi_device *adev)
{
if (ACPI_FAILURE(acpi_remove_address_space_handler(adev->handle,
ACPI_ADR_SPACE_CMOS, &acpi_cmos_rtc_space_handler)))
- pr_err(PREFIX "Error removing CMOS-RTC region handler\n");
+ pr_err("Error removing CMOS-RTC region handler\n");
}
static struct acpi_scan_handler cmos_rtc_handler = {