From: TeYuan Wang Date: Wed, 18 Mar 2020 14:12:16 +0000 (+0800) Subject: thermal: add sensor logging in thermalWatcherCallbackFunc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e69adfd99319b05df2c6bd9bd0cdd27eef5666e0;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git 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 --- 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_) {