Dumps systrace to a file.
The atrace command can take a while, so rather than use a pipe it's
better to write its output to a temporary file and add that file to the
zip, timing out if necessary.
BUG: 27821761
Change-Id: I09f438077d001167d92da3009016bcab815ce530
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index 8c0e840..5f9f24b 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -773,8 +773,8 @@
if (!waitpid_with_timeout(pid, 5, NULL)) {
kill(pid, SIGKILL);
if (!waitpid_with_timeout(pid, 5, NULL)) {
- printf("couldn not kill command '%s' (pid %d) even with SIGKILL.\n", command, pid);
- MYLOGE("couldn not kill command '%s' (pid %d) even with SIGKILL.\n", command, pid);
+ printf("could not kill command '%s' (pid %d) even with SIGKILL.\n", command, pid);
+ MYLOGE("could not kill command '%s' (pid %d) even with SIGKILL.\n", command, pid);
}
}
return -1;