From 8d426b73818cf07aeee3db88478a00b80ad9aafe Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Thu, 10 Jun 2021 12:43:10 -0700 Subject: Parse mmap protection and flags in strace PiperOrigin-RevId: 378712518 --- pkg/sentry/watchdog/watchdog.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/sentry/watchdog') 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)) } } -- cgit v1.2.3