Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3903a10d authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am da92bfda: Merge "dumpstate: fix dumping traces for vm processes on 64-bit"

* commit 'da92bfda':
  dumpstate: fix dumping traces for vm processes on 64-bit
parents baf8918c da92bfda
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -565,7 +565,7 @@ const char *dump_traces() {
        }
        data[len] = '\0';

        if (!strcmp(data, "/system/bin/app_process")) {
        if (!strncmp(data, "/system/bin/app_process", strlen("/system/bin/app_process"))) {
            /* skip zygote -- it won't dump its stack anyway */
            snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
            int fd = open(path, O_RDONLY);
@@ -575,7 +575,7 @@ const char *dump_traces() {
                continue;
            }
            data[len] = '\0';
            if (!strcmp(data, "zygote")) {
            if (!strncmp(data, "zygote", strlen("zygote"))) {
                continue;
            }