pmaports/device/testing/linux-amazon-austin/silence-thermal-logspam.patch
Richard Qian 02aaa6eae6
amazon-austin: new device (MR 3251)
Based on hexdump0815 and GjergjiFloychi's work.

[ci:skip-build] Already built successfuly on CI in MR
2022-07-06 12:13:47 -04:00

27 lines
891 B
Diff

diff --git a/drivers/thermal/virtual_sensor_thermal.c b/drivers/thermal/virtual_sensor_thermal.c
index d3f7265a..1fb47593 100644
--- a/drivers/thermal/virtual_sensor_thermal.c
+++ b/drivers/thermal/virtual_sensor_thermal.c
@@ -186,14 +186,14 @@ static int virtual_sensor_thermal_get_temp(struct thermal_zone_device *thermal,
log_to_metrics(ANDROID_LOG_INFO, "ThermalEvent", buf);
}
#endif
- if (0 == sec_counter)
- pr_warning("%s %s t=%ld a=%d o=%d w=%d\n",
- __func__,
- tdev->name,
- temp,
- alpha,
- offset,
- weight);
+// if (0 == sec_counter)
+// pr_warning("%s %s t=%ld a=%d o=%d w=%d\n",
+// __func__,
+// tdev->name,
+// temp,
+// alpha,
+// offset,
+// weight);
if (!tdev->off_temp)
tdev->off_temp = temp - offset;