aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/crash
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-07-03 13:48:30 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-05 11:29:44 +0000
commitbb8ee958074bd1d8fc4d4feff290196c4d74a4c4 (patch)
tree9fd8ea82302434a836087adf84aa231438ad7228 /pkg/report/crash
parentc8a08b381ddaa35d4e58e91b7d7d215c9fc66b87 (diff)
pkg/report/crash: explicitly print UNKNOWN for UnknownType
Diffstat (limited to 'pkg/report/crash')
-rw-r--r--pkg/report/crash/types.go7
1 files changed, 7 insertions, 0 deletions
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)
+}