提交 198ee437 编写于 作者: R Rafael J. Wysocki

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: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 ce522ba9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册