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

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>

authored by

Hanjun Guo and committed by
Rafael J. Wysocki
ad319565 8e173cbb

+4 -2
+4 -2
drivers/acpi/event.c
··· 7 7 * 8 8 */ 9 9 10 + #define pr_fmt(fmt) "ACPI: " fmt 11 + 10 12 #include <linux/spinlock.h> 11 13 #include <linux/export.h> 12 14 #include <linux/proc_fs.h> ··· 175 173 /* create genetlink for acpi event */ 176 174 error = acpi_event_genetlink_init(); 177 175 if (error) 178 - printk(KERN_WARNING PREFIX 179 - "Failed to create genetlink family for ACPI event\n"); 176 + pr_warn("Failed to create genetlink family for ACPI event\n"); 177 + 180 178 return 0; 181 179 } 182 180