diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/report/crash/types.go | 7 |
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) +} |
