Skip to content

Commit 05de068

Browse files
Tian Taorafaeljw
authored andcommitted
ACPI: scan: Replace ACPI_DEBUG_PRINT() with pr_debug()
Fix the following W=1 kernel build warning(s): drivers/acpi/scan.c: In function ‘acpi_bus_get_wakeup_device_flags’: drivers/acpi/scan.c:902:43: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] by using pr_debug() to instead of the ACPI_DEBUG_PRINT() macro, which should only be used by ACPICA code, to print a debug message. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent a1b8638 commit 05de068

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/acpi/scan.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,7 @@ static void acpi_bus_get_wakeup_device_flags(struct acpi_device *device)
898898
*/
899899
err = acpi_device_sleep_wake(device, 0, 0, 0);
900900
if (err)
901-
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
902-
"error in _DSW or _PSW evaluation\n"));
901+
pr_debug("error in _DSW or _PSW evaluation\n");
903902
}
904903

905904
static void acpi_bus_init_power_state(struct acpi_device *device, int state)

0 commit comments

Comments
 (0)