From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-acpi@vger.kernel.org
Subject: [PATCH] Fix acpi_power_get_state debug print
Date: Sun, 28 Sep 2008 11:08:46 +0400 [thread overview]
Message-ID: <200809281108.46982.arvidjaar@mail.ru> (raw)
[-- 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 --]
next reply other threads:[~2008-09-28 7:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-28 7:08 Andrey Borzenkov [this message]
2008-09-28 8:07 ` [PATCH] Fix acpi_power_get_state debug print Zhao Yakui
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=200809281108.46982.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.