Skip to content

Commit ddc50b6

Browse files
committed
ACPI: power: update error message
"Transitioning device [%s] to D%d" is not correct. We print this line when we attempted to transition the device, and it failed. So instead, print "Device [%s] failed to transition to D%d\n" This can happen under two conditions: 1. acpi_power_transition() fails when trying to handle the _ON/_OFF for associated power resource. 2. acpi_evaluate_object() on the explicit _PS0/_PS3 for that actual device could fail. this change clarifies, but doesn't fix http://bugzilla.kernel.org/show_bug.cgi?id=13243 Signed-off-by: Len Brown <len.brown@intel.com>
1 parent 413f81e commit ddc50b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/acpi/bus.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ int acpi_bus_set_power(acpi_handle handle, int state)
312312
end:
313313
if (result)
314314
printk(KERN_WARNING PREFIX
315-
"Transitioning device [%s] to D%d\n",
315+
"Device [%s] failed to transition to D%d\n",
316316
device->pnp.bus_id, state);
317317
else {
318318
device->power.state = state;

0 commit comments

Comments
 (0)