Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee17fdf2 authored by Zhihui Zhang's avatar Zhihui Zhang Committed by Rafael J. Wysocki
Browse files

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: default avatarZhihui Zhang <zzhsuny@gmail.com>
[rjw: Subject and changelog]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 70f6c087
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -344,7 +344,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
			tz->trips.hot.flags.valid = 1;
			tz->trips.hot.flags.valid = 1;
			ACPI_DEBUG_PRINT((ACPI_DB_INFO,
			ACPI_DEBUG_PRINT((ACPI_DB_INFO,
					"Found hot threshold [%lu]\n",
					"Found hot threshold [%lu]\n",
					tz->trips.critical.temperature));
					tz->trips.hot.temperature));
		}
		}
	}
	}