diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-29 01:56:49 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-29 01:56:49 +0000 |
commit | d5dd4fcec6617b52c8311ce8c5ae2efc7d308d53 (patch) | |
tree | 9ca3cfeaa20b7560073abe325c2458c5e00fa96c | |
parent | c580ffa207b9ca3e2dce3c6a63564c9cca598e5b (diff) | |
parent | ab7ecdd66d2aa4835bbe655ba672bd30813a2a88 (diff) |
Merge release-20200219.0-73-gab7ecdd (automated)
-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 bfb2fac26..f7d6009a0 100644 --- a/pkg/sentry/watchdog/watchdog.go +++ b/pkg/sentry/watchdog/watchdog.go @@ -221,7 +221,7 @@ func (w *Watchdog) waitForStart() { return } var buf bytes.Buffer - buf.WriteString("Watchdog.Start() not called within %s:\n") + buf.WriteString(fmt.Sprintf("Watchdog.Start() not called within %s", w.StartupTimeout)) w.doAction(w.StartupTimeoutAction, false, &buf) } @@ -325,7 +325,7 @@ func (w *Watchdog) report(offenders map[*kernel.Task]*offender, newTaskFound boo func (w *Watchdog) reportStuckWatchdog() { var buf bytes.Buffer - buf.WriteString("Watchdog goroutine is stuck:\n") + buf.WriteString("Watchdog goroutine is stuck:") w.doAction(w.TaskTimeoutAction, false, &buf) } @@ -359,7 +359,7 @@ func (w *Watchdog) doAction(action Action, skipStack bool, msg *bytes.Buffer) { case <-metricsEmitted: case <-time.After(1 * time.Second): } - panic(fmt.Sprintf("Stack for running G's are skipped while panicking.\n%s", msg.String())) + panic(fmt.Sprintf("%s\nStack for running G's are skipped while panicking.", msg.String())) default: panic(fmt.Sprintf("Unknown watchdog action %v", action)) |