diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-06-10 19:55:33 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-10 19:55:33 +0000 |
commit | 203df401b853b9916b4a1cdec702f096fb5ed828 (patch) | |
tree | a9b8ce9a6f8b983fbd610e54bc6b6c1a761b5e99 /pkg/sentry/watchdog/watchdog.go | |
parent | 767289c84bbfc7bb98655924661d4ce850bb3070 (diff) | |
parent | 8d426b73818cf07aeee3db88478a00b80ad9aafe (diff) |
Merge release-20210601.0-41-g8d426b738 (automated)
Diffstat (limited to 'pkg/sentry/watchdog/watchdog.go')
-rw-r--r-- | pkg/sentry/watchdog/watchdog.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/watchdog/watchdog.go b/pkg/sentry/watchdog/watchdog.go index dfe85f31d..8d563d53a 100644 --- a/pkg/sentry/watchdog/watchdog.go +++ b/pkg/sentry/watchdog/watchdog.go @@ -115,14 +115,14 @@ func (a *Action) Get() interface{} { } // String returns Action's string representation. -func (a *Action) String() string { - switch *a { +func (a Action) String() string { + switch a { case LogWarning: return "logWarning" case Panic: return "panic" default: - panic(fmt.Sprintf("Invalid watchdog action: %d", *a)) + panic(fmt.Sprintf("Invalid watchdog action: %d", a)) } } |