From fbc119e631b5fe4eae43b1a37c660038ac3788cd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 17 Jan 2021 12:25:56 +0100 Subject: pkg/report: support alternative bug titles Update #1575 --- pkg/report/linux.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/report/linux.go') 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 { -- cgit mrf-deployment