Skip to contentSkip to conversation

: ACPI: Cleanup in ACPI device power state transition

PATCH New yakui_zhao 1 participant 1 message May 11, 2009 ACPI

lore
Share & tools
lore

yakui_zhao

author
#0 lore raw

PATCH 1/1 : ACPI: Cleanup in ACPI device power state transition

From: Zhao Yakui <[email protected]>

Cleanup in the function of acpi device power state transition. When the ACPI device can't be transited to the target D-state, OS should report the warning message of "Failure in transiting device [%s] to D%d state" instead of "Transiting device[%s] to D%d state".

---
 drivers/acpi/bus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/bus.c +1 -1
Index: linux-2.6/drivers/acpi/bus.c
===================================================================
@@ -321,7 +321,7 @@
       end:
 	if (result)
 		printk(KERN_WARNING PREFIX
-			      "Transitioning device [%s] to D%d\n",
+			      "Failure in transiting device [%s] to D%d\n",
 			      device->pnp.bus_id, state);
 	else {
 		device->power.state = state;