public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: ACPI: Cleanup in ACPI device power state transition
@ 2009-05-11  1:24 yakui_zhao
  0 siblings, 0 replies; only message in thread
From: yakui_zhao @ 2009-05-11  1:24 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi

From: Zhao Yakui <yakui.zhao@intel.com>

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".

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
---
 drivers/acpi/bus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/acpi/bus.c
===================================================================
--- linux-2.6.orig/drivers/acpi/bus.c	2009-05-11 08:57:49.000000000 +0800
+++ linux-2.6/drivers/acpi/bus.c	2009-05-11 09:16:27.000000000 +0800
@@ -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;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-11  1:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-11  1:24 [PATCH]: ACPI: Cleanup in ACPI device power state transition yakui_zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox