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 <kamewang@google.com>
tirimbino
TeYuan Wang 5 years ago committed by Francescodario Cuzzocrea
parent e2737f7c4e
commit e69adfd993
  1. 1
      hidl/thermal/thermal-helper.cpp

@ -605,6 +605,7 @@ bool ThermalHelper::thermalWatcherCallbackFunc(const std::set<std::string> &ueve
}
if (sensor_status.severity != ThrottlingSeverity::NONE) {
thermal_triggered = true;
LOG(INFO) << temp.name << ": " << temp.value;
}
}
if (!temps.empty() && cb_) {

Loading…
Cancel
Save