public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix acpi_power_get_state debug print
@ 2008-09-28  7:08 Andrey Borzenkov
  2008-09-28  8:07 ` Zhao Yakui
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Borzenkov @ 2008-09-28  7:08 UTC (permalink / raw)
  To: linux-acpi


[-- Attachment #1.1: Type: text/plain, Size: 48 bytes --]

Trivial patch to fix debugging output.

-andrey

[-- Attachment #1.2: fix_acpi_power_gwt_status_debug_print --]
[-- Type: text/x-diff, Size: 780 bytes --]

Subject: [PATCH] Fix acpi_power_get_state debug print
From: Andrey Borzenkov < arvidjaar@mail.ru>

acpi_power_get_state always printed power state as "on".

Signed-off-by: Andrey Borzenkov < arvidjaar@mail.ru>

---

 drivers/acpi/power.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index 4ab21cb..e05b2f6 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -145,7 +145,7 @@ static int acpi_power_get_state(struct acpi_power_resource *resource, int *state
 			      ACPI_POWER_RESOURCE_STATE_OFF;
 
 	ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] is %s\n",
-			  resource->name, state ? "on" : "off"));
+			  resource->name, *state ? "on" : "off"));
 
 	return 0;
 }

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix acpi_power_get_state debug print
  2008-09-28  7:08 [PATCH] Fix acpi_power_get_state debug print Andrey Borzenkov
@ 2008-09-28  8:07 ` Zhao Yakui
  0 siblings, 0 replies; 2+ messages in thread
From: Zhao Yakui @ 2008-09-28  8:07 UTC (permalink / raw)
  To: Andrey Borzenkov; +Cc: linux-acpi

On Sun, 2008-09-28 at 11:08 +0400, Andrey Borzenkov wrote:
> Trivial patch to fix debugging output.
> 
Thanks for caring this problem.
   I have already sent the patch that fix this issue. 
   http://marc.info/?l=linux-acpi&m=122231986105450&w=2

thanks.
> -andrey


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-28  8:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28  7:08 [PATCH] Fix acpi_power_get_state debug print Andrey Borzenkov
2008-09-28  8:07 ` Zhao Yakui

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