From 640ebb2f79864a0e05d5c5a1612274d17cdbca68 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 19 Apr 2017 10:37:56 -0700 Subject: [PATCH] lock: Fix missing formatting directives while printing. (#4147) Current log prints in this form ``` ERRO[8150] Lock maintenance failed to remove entry for write lock (should never happen)%!!(MISSING)(EXTRA .... ``` Fix this by using proper formatting directive. --- cmd/lock-rpc-server-common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lock-rpc-server-common.go b/cmd/lock-rpc-server-common.go index a268c0b9c..ef65ca56e 100644 --- a/cmd/lock-rpc-server-common.go +++ b/cmd/lock-rpc-server-common.go @@ -29,7 +29,7 @@ func (l *lockServer) removeEntryIfExists(nlrip nameLockRequesterInfoPair) { // Remove failed, in case it is a: if nlrip.lri.writer { // Writer: this should never happen as the whole (mapped) entry should have been deleted - errorIf(errors.New(""), "Lock maintenance failed to remove entry for write lock (should never happen)", nlrip.name, nlrip.lri.uid, lri) + errorIf(errors.New(""), "Lock maintenance failed to remove entry for write lock (should never happen) %#v %#v %#v", nlrip.name, nlrip.lri.uid, lri) } // Reader: this can happen if multiple read locks were active and // the one we are looking for has been released concurrently (so it is fine). } // Removal went okay, all is fine.