diff options
author | Zhihui Zhang <zzhsuny@gmail.com> | 2014-03-29 09:25:47 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-04-07 14:00:49 +0200 |
commit | ee17fdf24bf815650c87b3bb35fbab42681523a8 (patch) | |
tree | 9cc3a461e9bb79cb2be67018f30131da7e4a1e48 /drivers/acpi/thermal.c | |
parent | 70f6c087573eeb406252ff8d98f511eb5f71496e (diff) | |
download | talos-obmc-linux-ee17fdf24bf815650c87b3bb35fbab42681523a8.tar.gz talos-obmc-linux-ee17fdf24bf815650c87b3bb35fbab42681523a8.zip |
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>
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r-- | drivers/acpi/thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 964068553334..c1e31a41f949 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)); } } |