From 1a082a48e8bf9132850b61fb58c0d1bc0ba5b6d7 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Wed, 3 Oct 2018 15:26:33 -0400 Subject: [PATCH] storage: printf cleanups go test in 1.11 now performs some validation of format strings, so this address the issues highlighted by go test, allowing go test to pass with 1.11. Fixes pertaining to storage. --- pkg/volume/azure_dd/azure_dd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/azure_dd/azure_dd.go b/pkg/volume/azure_dd/azure_dd.go index 5e237f5e55..705e2cba74 100644 --- a/pkg/volume/azure_dd/azure_dd.go +++ b/pkg/volume/azure_dd/azure_dd.go @@ -188,7 +188,7 @@ func getMaxDataDiskCount(instanceType string, sizeList *[]compute.VirtualMachine continue } if strings.ToUpper(*size.Name) == vmsize { - glog.V(2).Infof("got a matching size in getMaxDataDiskCount, Name: %s, MaxDataDiskCount: %s", *size.Name, *size.MaxDataDiskCount) + glog.V(2).Infof("got a matching size in getMaxDataDiskCount, Name: %s, MaxDataDiskCount: %d", *size.Name, *size.MaxDataDiskCount) return int64(*size.MaxDataDiskCount) } }