From: Zhihui Zhang <zzhsuny@gmail.com> Date: Sat, 29 Mar 2014 13:25:47 +0000 (-0400) Subject: ACPI / thermal: Fix wrong variable usage in debug statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ee17fdf24bf815650c87b3bb35fbab42681523a8;p=linux.git ACPI / thermal: Fix wrong variable usage in debug statement 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 <zzhsuny@gmail.com> [rjw: Subject and changelog] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> --- diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 9640685533345..c1e31a41f9495 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -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)); } }