Skip to content

Commit 6ecfe60

Browse files
guohanjunrafaeljw
authored andcommitted
ACPI: reboot: Unify the message printing
The meesage printing in this file is mixed with pr_*() and printk() but with no prefix and no pr_fmt() defined. Intoduce pr_fmt() and use pr_*() macros to replace printk(), to generate a unified format string for prefix. Signed-off-by: Hanjun Guo <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 4140054 commit 6ecfe60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/acpi/reboot.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3+
#define pr_fmt(fmt) "ACPI: " fmt
4+
35
#include <linux/pci.h>
46
#include <linux/acpi.h>
57
#include <acpi/reboot.h>
@@ -63,7 +65,7 @@ void acpi_reboot(void)
6365

6466
case ACPI_ADR_SPACE_SYSTEM_MEMORY:
6567
case ACPI_ADR_SPACE_SYSTEM_IO:
66-
printk(KERN_DEBUG "ACPI MEMORY or I/O RESET_REG.\n");
68+
pr_debug("ACPI MEMORY or I/O RESET_REG.\n");
6769
acpi_reset();
6870
break;
6971
}

0 commit comments

Comments
 (0)