Skip to content

Commit 198ee43

Browse files
committed
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 <rafael.j.wysocki@intel.com>
1 parent ce522ba commit 198ee43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/device_pm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ int acpi_device_get_power(struct acpi_device *device, int *state)
130130
*state = result;
131131

132132
out:
133-
dev_dbg(&device->dev, "Device power state is %s\n",
134-
acpi_power_state_string(*state));
133+
acpi_handle_debug(device->handle, "Power state: %s\n",
134+
acpi_power_state_string(*state));
135135

136136
return 0;
137137
}

0 commit comments

Comments
 (0)