From 758d4f22fe9180b27227ec54688268068143e8f8 Mon Sep 17 00:00:00 2001 From: Mason Wang Date: Wed, 30 Nov 2022 09:59:44 +0800 Subject: [PATCH] Dumpstate: Filter not used dumps of touch node. [DO NOT MERGE] Bug: 226475119 Test: Dumps of outer panel is in bugreport. Change-Id: I1e6e59e1709715306671df9536685d9b3a9e34d6 --- dumpstate/Dumpstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index c2b53d61..1a06d9e0 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -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)) {