diff options
author | 2019-01-04 09:03:32 -0800 | |
---|---|---|
committer | 2019-01-04 09:03:32 -0800 | |
commit | 4db5fa02cf4c13901b1e3ae3f359efda6a62e91a (patch) | |
tree | 9025eaec409f9c31bbf042a01c84b46d84bc0917 /cmds/dumpstate/utils.cpp | |
parent | 21a3067d7ae361dcd1d13bff16577ea64ef051e4 (diff) | |
parent | 785f9ebbe8c268313dd03d6ffb680df7e588d7ee (diff) |
Merge "dumpstate: Improve error message for failed dumps." am: 8f3776a7ac am: 363e272899
am: 785f9ebbe8
Change-Id: Ie6c748a7bf5d9a2a259a7b9b344347ed3657f4e8
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
-rw-r--r-- | cmds/dumpstate/utils.cpp | 6 |
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; } |