summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/utils.cpp
diff options
context:
space:
mode:
author Narayan Kamath <narayan@google.com> 2019-01-04 08:33:00 -0800
committer android-build-merger <android-build-merger@google.com> 2019-01-04 08:33:00 -0800
commit363e272899b1c6c7f2debbd54c1cfdf8eedc158f (patch)
tree5e5c6604cc95a7e82c05664a5ad5a00ada8ed274 /cmds/dumpstate/utils.cpp
parent6da7c0d67f9faa9b5ee42acf6212e3d1debab790 (diff)
parent8f3776a7ace3d5c7bd4832367c495f63825a51b1 (diff)
Merge "dumpstate: Improve error message for failed dumps."
am: 8f3776a7ac Change-Id: I26a9a9e9eeecea74dfb0590427a63ae0a9096455
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
-rw-r--r--cmds/dumpstate/utils.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp
index d97ffbf2ed..990fd43fd4 100644
--- a/cmds/dumpstate/utils.cpp
+++ b/cmds/dumpstate/utils.cpp
@@ -871,7 +871,11 @@ const char* dump_traces() {
is_java_process ? 5 : 20, fd);
if (ret == -1) {
- dprintf(fd, "dumping failed, likely due to a timeout\n");
+ // For consistency, the header and footer to this message match those
+ // dumped by debuggerd in the success case.
+ dprintf(fd, "\n---- pid %d at [unknown] ----\n", pid);
+ dprintf(fd, "Dump failed, likely due to a timeout.\n");
+ dprintf(fd, "---- end %d ----", pid);
timeout_failures++;
continue;
}