[PATCH] Fix acpi_power_get_state debug print

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Trivial patch to fix debugging output.

-andrey
Subject: [PATCH] Fix acpi_power_get_state debug print
From: Andrey Borzenkov < arvidjaar@xxxxxxx>

acpi_power_get_state always printed power state as "on".

Signed-off-by: Andrey Borzenkov < arvidjaar@xxxxxxx>

---

 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: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux