dumpstate: health descriptor name changed

The health descriptor folder name was changed
from "health" to "health_descriptor".

log:
------ UFS health (/vendor/bin/sh -c for f in $(find /sys/devices/...------
--- /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimation_a
0x01
--- /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimation_b
0x01
--- /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/eol_info
0x01

Bug: 137150088
Bug: 141666555
Test: Run bugreport and check ufs health
Change-Id: Iaf693cf2b259240238160f1bc10362118a2538ba
Signed-off-by: Ocean Chen <oceanchen@google.com>
This commit is contained in:
Ocean Chen
2019-10-17 16:09:05 +08:00
committed by Leo Liou
parent 19999494d4
commit bac2713bca

View File

@@ -343,7 +343,7 @@ static void DumpUFS(int fd) {
DumpFileToFd(fd, "UFS Slow IO Unmap", "/sys/devices/platform/soc/" + bootdev + "/slowio_unmap_cnt");
DumpFileToFd(fd, "UFS Slow IO Sync", "/sys/devices/platform/soc/" + bootdev + "/slowio_sync_cnt");
std::string ufs_health = "for f in $(find /sys/devices/platform/soc/" + bootdev + "/health -type f); do if [[ -r $f && -f $f ]]; then echo --- $f; cat $f; echo ''; fi; done";
std::string ufs_health = "for f in $(find /sys/devices/platform/soc/" + bootdev + "/health_descriptor -type f); do if [[ -r $f && -f $f ]]; then echo --- $f; cat $f; echo ''; fi; done";
RunCommandToFd(fd, "UFS health", {"/vendor/bin/sh", "-c", ufs_health.c_str()});
}
}