From bb8ee958074bd1d8fc4d4feff290196c4d74a4c4 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 3 Jul 2023 13:48:30 +0200 Subject: pkg/report/crash: explicitly print UNKNOWN for UnknownType --- pkg/report/crash/types.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg') diff --git a/pkg/report/crash/types.go b/pkg/report/crash/types.go index e83853024..85a36853e 100644 --- a/pkg/report/crash/types.go +++ b/pkg/report/crash/types.go @@ -19,3 +19,10 @@ const ( AtomicSleep = Type("ATOMIC_SLEEP") KMSAN = Type("KMSAN") ) + +func (t Type) String() string { + if t == UnknownType { + return "UNKNOWN" + } + return string(t) +} -- cgit mrf-deployment