Dumpstate: Filter not used dumps of touch node. [DO NOT MERGE] am: 758d4f22fe

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20585803

Change-Id: Ied9169de78ce5cf906b77ef6d66ad2c792351711
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mason Wang 2022-11-30 23:50:22 +00:00 committed by Automerger Merge Worker
commit e394da1a62

View file

@ -619,7 +619,7 @@ void Dumpstate::dumpTouchSection(int fd) {
for (int i = 0; i < 4; i += 2) { // ftm5
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i]);
if (!access(cmd, R_OK))
if (access(cmd, R_OK))
continue;
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
if (!access(cmd, R_OK)) {