summaryrefslogtreecommitdiff
path: root/drivers/acpi/event.c
diff options
context:
space:
mode:
authorHanjun Guo <guohanjun@huawei.com>2021-06-02 11:54:26 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-07 16:36:45 +0300
commitad319565d62fa42220439efe29cc5d7b8c248dac (patch)
tree22370bbdd743090c81bca69483a044e09ac3b986 /drivers/acpi/event.c
parent8e173cbb6a776cb1a3540be17780a5616b5c815a (diff)
downloadlinux-ad319565d62fa42220439efe29cc5d7b8c248dac.tar.xz
ACPI: event: Use pr_*() macros to replace printk()
Introduce pr_fmt() and replace direct printk() invocation with the matching pr_*() call to prepare for removing PREFIX. Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/event.c')
-rw-r--r--drivers/acpi/event.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c
index 92e59f45329b..df38f3c94861 100644
--- a/drivers/acpi/event.c
+++ b/drivers/acpi/event.c
@@ -7,6 +7,8 @@
*
*/
+#define pr_fmt(fmt) "ACPI: " fmt
+
#include <linux/spinlock.h>
#include <linux/export.h>
#include <linux/proc_fs.h>
@@ -173,8 +175,8 @@ static int __init acpi_event_init(void)
/* create genetlink for acpi event */
error = acpi_event_genetlink_init();
if (error)
- printk(KERN_WARNING PREFIX
- "Failed to create genetlink family for ACPI event\n");
+ pr_warn("Failed to create genetlink family for ACPI event\n");
+
return 0;
}