summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/utils.cpp
diff options
context:
space:
mode:
author Felipe Leme <felipeal@google.com> 2016-03-30 18:51:03 -0700
committer Felipe Leme <felipeal@google.com> 2016-03-30 19:14:14 -0700
commit14e034a02ec34b2c76afb06975bdfc943a9b5607 (patch)
treec611b7d95c9f2ba91c7aa2f61967a3106afda4ef /cmds/dumpstate/utils.cpp
parent69a1a389321447301a8eaba235190dc1229aefbd (diff)
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
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
-rw-r--r--cmds/dumpstate/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index 8c0e840050..5f9f24be4e 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -773,8 +773,8 @@ int run_command_always(const char *title, bool drop_root, int timeout_seconds, c
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;