diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-09-22 20:48:40 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-22 20:48:40 +0000 |
commit | a2f8b4dcc444e98f9c593bcb77ba5a01dc47d9e3 (patch) | |
tree | 37f13aac5287f10dcf050a7f817ba2e998678c98 /pkg/refs/refcounter.go | |
parent | d2b7cdd6075025b8c4d31f6b8bb0a8c10554fec2 (diff) | |
parent | 778c367171f96c6cfd269cd2363c9f608dd96bcb (diff) |
Merge release-20200914.0-132-g778c36717 (automated)
Diffstat (limited to 'pkg/refs/refcounter.go')
-rw-r--r-- | pkg/refs/refcounter.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/refs/refcounter.go b/pkg/refs/refcounter.go index 57d8542b9..699ea8ac3 100644 --- a/pkg/refs/refcounter.go +++ b/pkg/refs/refcounter.go @@ -257,6 +257,8 @@ func (l *LeakMode) Get() interface{} { // String implements flag.Value. func (l *LeakMode) String() string { switch *l { + case UninitializedLeakChecking: + return "uninitialized" case NoLeakChecking: return "disabled" case LeaksLogWarning: @@ -264,7 +266,7 @@ func (l *LeakMode) String() string { case LeaksLogTraces: return "log-traces" } - panic(fmt.Sprintf("invalid ref leak mode %q", *l)) + panic(fmt.Sprintf("invalid ref leak mode %d", *l)) } // leakMode stores the current mode for the reference leak checker. |