]> Git Repo - linux.git/commitdiff
ACPI / thermal: Fix wrong variable usage in debug statement
authorZhihui Zhang <[email protected]>
Sat, 29 Mar 2014 13:25:47 +0000 (09:25 -0400)
committerRafael J. Wysocki <[email protected]>
Mon, 7 Apr 2014 12:00:49 +0000 (14:00 +0200)
A debug statement in acpi_thermal_trips_update() uses a wrong trip
point (tz->trips.critical instead of tz->trips.hot) to get the
temperature value from.  Fix that.

Signed-off-by: Zhihui Zhang <[email protected]>
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/acpi/thermal.c

index 9640685533345340bbff00bc67abeecac4e9c7d1..c1e31a41f94957d87ded390dfbfcc54333728e3c 100644 (file)
@@ -344,7 +344,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
                        tz->trips.hot.flags.valid = 1;
                        ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                                        "Found hot threshold [%lu]\n",
-                                       tz->trips.critical.temperature));
+                                       tz->trips.hot.temperature));
                }
        }
 
This page took 0.057036 seconds and 4 git commands to generate.