public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: yakui_zhao <yakui.zhao@intel.com>
To: lenb@kernel.org
Cc: linux-acpi@vger.kernel.org
Subject: [PATCH]: ACPI: Cleanup in ACPI device power state transition
Date: Mon, 11 May 2009 09:24:36 +0800	[thread overview]
Message-ID: <1242005076.3773.133.camel@localhost.localdomain> (raw)

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;



                 reply	other threads:[~2009-05-11  1:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1242005076.3773.133.camel@localhost.localdomain \
    --to=yakui.zhao@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox