summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2023-05-19 06:48:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-05-19 06:48:52 +0000
commit262976f7d81cc525768b30139f7b37fb8241daea (patch)
treed97aeae310554c9c96e52686814cb5b844d8b73a
parent96e250f62f584ab134169aaf8c5450e02683b0e2 (diff)
parentb4ea4b8ee482c1a73474d93809f745254eaa7b01 (diff)
Merge "thermal: support -a option for thermalHAL debug info dump" into udc-dev
-rw-r--r--thermal/Thermal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/thermal/Thermal.cpp b/thermal/Thermal.cpp
index 74ea266..caab2b5 100644
--- a/thermal/Thermal.cpp
+++ b/thermal/Thermal.cpp
@@ -744,7 +744,7 @@ void Thermal::dumpThermalData(int fd) {
}
binder_status_t Thermal::dump(int fd, const char **args, uint32_t numArgs) {
- if (numArgs == 0) {
+ if (numArgs == 0 || std::string(args[0]) == "-a") {
dumpThermalData(fd);
return STATUS_OK;
}