summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/watchdog/watchdog.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2021-06-10 12:43:10 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-10 12:51:43 -0700
commit8d426b73818cf07aeee3db88478a00b80ad9aafe (patch)
tree6f2d3effdce92e16ab46f2e624279cd60fe97654 /pkg/sentry/watchdog/watchdog.go
parent450692e03fe651d75d017c7e2faf4cba10e26f0b (diff)
Parse mmap protection and flags in strace
PiperOrigin-RevId: 378712518
Diffstat (limited to 'pkg/sentry/watchdog/watchdog.go')
-rw-r--r--pkg/sentry/watchdog/watchdog.go6
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))
}
}