Fix acpi_power_get_state debug print
PATCH 1/1 Fix acpi_power_get_state debug print
Trivial patch to fix debugging output.
-andrey
Subject: [PATCH] Fix acpi_power_get_state debug print
From: Andrey Borzenkov < [email protected]>
acpi_power_get_state always printed power state as "on".
Signed-off-by Andrey Borzenkov < [email protected]>
---
drivers/acpi/power.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/power.c +1 -1
@@ -145,7 +145,7 @@ static int acpi_power_get_state(struct acpi_power_resource *resource, int *stateACPI_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 ; }
Quoted 2 lines · Andrey Borzenkov
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.
Quoted 1 line
-andrey