Commit 606e56c6 authored by Hanjun Guo's avatar Hanjun Guo Committed by Rafael J. Wysocki

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: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 614124be
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
* Authors: Lan Tianyu <tianyu.lan@intel.com> * Authors: Lan Tianyu <tianyu.lan@intel.com>
*/ */
#define pr_fmt(fmt) "ACPI: " fmt
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/err.h> #include <linux/err.h>
...@@ -59,7 +61,7 @@ static int acpi_install_cmos_rtc_space_handler(struct acpi_device *adev, ...@@ -59,7 +61,7 @@ static int acpi_install_cmos_rtc_space_handler(struct acpi_device *adev,
&acpi_cmos_rtc_space_handler, &acpi_cmos_rtc_space_handler,
NULL, NULL); NULL, NULL);
if (ACPI_FAILURE(status)) { 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; return -ENODEV;
} }
...@@ -70,7 +72,7 @@ static void acpi_remove_cmos_rtc_space_handler(struct acpi_device *adev) ...@@ -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, if (ACPI_FAILURE(acpi_remove_address_space_handler(adev->handle,
ACPI_ADR_SPACE_CMOS, &acpi_cmos_rtc_space_handler))) 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 = { static struct acpi_scan_handler cmos_rtc_handler = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment