From e69adfd99319b05df2c6bd9bd0cdd27eef5666e0 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Wed, 18 Mar 2020 22:12:16 +0800 Subject: [PATCH] thermal: add sensor logging in thermalWatcherCallbackFunc Bug: 151818536 Test: Log can be printed as below: I/android.hardware.thermal@2.0-service.pixel( 889): skin-therm-monitor: 50 Change-Id: Iefd24ff48ead9c2da55640742abcb158e9b181c2 Signed-off-by: TeYuan Wang --- hidl/thermal/thermal-helper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hidl/thermal/thermal-helper.cpp b/hidl/thermal/thermal-helper.cpp index 269b1de..b84b1a9 100644 --- a/hidl/thermal/thermal-helper.cpp +++ b/hidl/thermal/thermal-helper.cpp @@ -605,6 +605,7 @@ bool ThermalHelper::thermalWatcherCallbackFunc(const std::set &ueve } if (sensor_status.severity != ThrottlingSeverity::NONE) { thermal_triggered = true; + LOG(INFO) << temp.name << ": " << temp.value; } } if (!temps.empty() && cb_) { -- 2.20.1