diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-01-17 12:25:56 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-01-17 15:44:44 +0100 |
| commit | fbc119e631b5fe4eae43b1a37c660038ac3788cd (patch) | |
| tree | 219f7c279261e624385ab3e2946ff76675553833 /pkg/report/linux.go | |
| parent | 813be5426a31b5b3ead90cf5729c8b7a7a17d7c1 (diff) | |
pkg/report: support alternative bug titles
Update #1575
Diffstat (limited to 'pkg/report/linux.go')
| -rw-r--r-- | pkg/report/linux.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 8aed7d4f4..dd781ae89 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -145,17 +145,18 @@ func (ctx *linux) Parse(output []byte) *Report { } endPos, reportEnd, report, prefix := ctx.findReport(output, oops, startPos, context, questionable) rep.EndPos = endPos - title, corrupted, format := extractDescription(report[:reportEnd], oops, linuxStackParams) + title, corrupted, altTitles, format := extractDescription(report[:reportEnd], oops, linuxStackParams) if title == "" { prefix = nil report = output[rep.StartPos:rep.EndPos] - title, corrupted, format = extractDescription(report, oops, linuxStackParams) + title, corrupted, altTitles, format = extractDescription(report, oops, linuxStackParams) if title == "" { panic(fmt.Sprintf("non matching oops for %q context=%q in:\n%s\n", oops.header, context, report)) } } rep.Title = title + rep.AltTitles = altTitles rep.Corrupted = corrupted != "" rep.CorruptedReason = corrupted for _, line := range prefix { |
