diff options
| author | 2019-01-04 08:44:01 -0800 | |
|---|---|---|
| committer | 2019-01-04 08:44:01 -0800 | |
| commit | 785f9ebbe8c268313dd03d6ffb680df7e588d7ee (patch) | |
| tree | e35c3964e23eb8820d0317d33c9fc6f2c5a10a63 /cmds/dumpstate/utils.cpp | |
| parent | 57419bf264d1db52d0f1fd6e5d59a1174b2eaf77 (diff) | |
| parent | 363e272899b1c6c7f2debbd54c1cfdf8eedc158f (diff) | |
Merge "dumpstate: Improve error message for failed dumps." am: 8f3776a7ac
am: 363e272899
Change-Id: Ica9d2958a0972be92a317ccaf8a6d84f3e198cb3
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; } |