diff options
author | zhouwenjie <zhouwenjie@google.com> | 2019-10-30 14:31:54 -0700 |
---|---|---|
committer | zhouwenjie <zhouwenjie@google.com> | 2019-11-01 11:24:44 -0700 |
commit | c3bf8040a30b2e53bf212c57a665830a3acc78f0 (patch) | |
tree | b55cbe1687d741f960a66d401a746df46d69e62e /tools | |
parent | 68be4332ae3d3cfa97981295ab38e54a816f24c0 (diff) |
Add last logcat data to incident report
Bug: 142721354
Test: adb sehll incident -p EXPLICIT 1109
Change-Id: Iaee370310e36998e161955e0f12d98ac8cd8eb90
Diffstat (limited to 'tools')
-rw-r--r-- | tools/incident_section_gen/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/incident_section_gen/main.cpp b/tools/incident_section_gen/main.cpp index 91f875ed9918..ded4b916c452 100644 --- a/tools/incident_section_gen/main.cpp +++ b/tools/incident_section_gen/main.cpp @@ -436,7 +436,9 @@ static bool generateSectionListCpp(Descriptor const* descriptor) { printf(" NULL),\n"); break; case SECTION_LOG: - printf(" new LogSection(%d, %s),\n", field->number(), s.args().c_str()); + printf(" new LogSection(%d, ", field->number()); + splitAndPrint(s.args()); + printf(" NULL),\n"); break; case SECTION_GZIP: printf(" new GZipSection(%d,", field->number()); |