Message ID | 1622624080-56025-5-git-send-email-guohanjun@huawei.com |
---|---|
State | Accepted |
Commit | ad319565d62fa42220439efe29cc5d7b8c248dac |
Headers | show |
Series | [01/18] ACPI: cmos_rtc: Using pr_fmt() and remove PREFIX | expand |
diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c index bfb16cf..d199a19 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; }
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> --- drivers/acpi/event.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)