From ffbc626e53adb61089d2178129cd76b5104b526c Mon Sep 17 00:00:00 2001 From: Peng Gao Date: Sat, 26 Mar 2016 23:28:59 +0800 Subject: [PATCH] Use %v for map structure format Based on Golang document, %s is for "the uninterpreted bytes of the string or slice", so %v is more appropriate. Signed-off-by: Peng Gao --- libcontainer/cgroups/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/cgroups/utils.go b/libcontainer/cgroups/utils.go index 006800dc..23527329 100644 --- a/libcontainer/cgroups/utils.go +++ b/libcontainer/cgroups/utils.go @@ -326,7 +326,7 @@ func RemovePaths(paths map[string]string) (err error) { return nil } } - return fmt.Errorf("Failed to remove paths: %s", paths) + return fmt.Errorf("Failed to remove paths: %v", paths) } func GetHugePageSize() ([]string, error) {