From 9865aef21b38fd9d520df6fe6c3b8e31500a124a Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Mon, 10 Sep 2018 11:08:03 -0700 Subject: [PATCH] Some minor fixes for warnings while running the tests Signed-off-by: Doug Davis --- cmd/kubeadm/app/phases/certs/certs.go | 2 +- pkg/util/ipset/ipset.go | 2 +- pkg/volume/azure_dd/azure_dd.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kubeadm/app/phases/certs/certs.go b/cmd/kubeadm/app/phases/certs/certs.go index 20bf37c4429..9119ef1899f 100644 --- a/cmd/kubeadm/app/phases/certs/certs.go +++ b/cmd/kubeadm/app/phases/certs/certs.go @@ -110,7 +110,7 @@ func CreateCACertAndKeyFiles(certSpec *KubeadmCert, cfg *kubeadmapi.InitConfigur if certSpec.CAName != "" { return fmt.Errorf("This function should only be used for CAs, but cert %s has CA %s", certSpec.Name, certSpec.CAName) } - glog.V(1).Infoln("creating a new certificate authority for %s", certSpec.Name) + glog.V(1).Infof("creating a new certificate authority for %s", certSpec.Name) certConfig, err := certSpec.GetConfig(cfg) if err != nil { diff --git a/pkg/util/ipset/ipset.go b/pkg/util/ipset/ipset.go index 4bc4a739d38..d48d2dd84d5 100644 --- a/pkg/util/ipset/ipset.go +++ b/pkg/util/ipset/ipset.go @@ -485,7 +485,7 @@ func validateProtocol(protocol string) bool { if protocol == ProtocolTCP || protocol == ProtocolUDP || protocol == ProtocolSCTP { return true } - glog.Errorf("Invalid entry's protocol: %s, supported protocols are [%s, %s]", protocol, ProtocolTCP, ProtocolUDP, ProtocolSCTP) + glog.Errorf("Invalid entry's protocol: %s, supported protocols are [%s, %s, %s]", protocol, ProtocolTCP, ProtocolUDP, ProtocolSCTP) return false } diff --git a/pkg/volume/azure_dd/azure_dd.go b/pkg/volume/azure_dd/azure_dd.go index 5e237f5e55f..705e2cba74a 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) } }