From: Rafael J. Wysocki Date: Mon, 4 Apr 2022 15:00:45 +0000 (+0200) Subject: ACPI: PM: Convert debug message in acpi_device_get_power() X-Git-Tag: v6.6.17~7483^2~1^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=198ee4377b9675898a53c1a02f6ba55d186cc806;p=platform%2Fkernel%2Flinux-rpi.git ACPI: PM: Convert debug message in acpi_device_get_power() Convert the debug message printed by acpi_device_get_power() to acpi_handle_debug(), because that function is also called when the ACPI device object name has not been set yet and the dev_dbg() message printed by it at that time is not useful. Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index cc6c97e..0bab275 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c @@ -130,8 +130,8 @@ int acpi_device_get_power(struct acpi_device *device, int *state) *state = result; out: - dev_dbg(&device->dev, "Device power state is %s\n", - acpi_power_state_string(*state)); + acpi_handle_debug(device->handle, "Power state: %s\n", + acpi_power_state_string(*state)); return 0; }