From 9ad39c9edafabbcdbea2ee5a6ce75bda9b5b9f65 Mon Sep 17 00:00:00 2001
From: qingsenLi
Date: Thu, 22 Oct 2020 17:26:29 +0800
Subject: [PATCH] format incorrectAddresses in klog
---
pkg/proxy/iptables/proxier.go | 2 +-
pkg/proxy/ipvs/proxier.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/proxy/iptables/proxier.go b/pkg/proxy/iptables/proxier.go
index 3af1bc836e3..25e50f203d0 100644
--- a/pkg/proxy/iptables/proxier.go
+++ b/pkg/proxy/iptables/proxier.go
@@ -293,7 +293,7 @@ func NewProxier(ipt utiliptables.Interface,
var incorrectAddresses []string
nodePortAddresses, incorrectAddresses = utilproxy.FilterIncorrectCIDRVersion(nodePortAddresses, isIPv6)
if len(incorrectAddresses) > 0 {
- klog.Warning("NodePortAddresses of wrong family; ", incorrectAddresses)
+ klog.Warningf("NodePortAddresses of wrong family; %s", incorrectAddresses)
}
proxier := &Proxier{
portsMap: make(map[utilproxy.LocalPort]utilproxy.Closeable),
diff --git a/pkg/proxy/ipvs/proxier.go b/pkg/proxy/ipvs/proxier.go
index 31933db0534..cadc0ee4fbc 100644
--- a/pkg/proxy/ipvs/proxier.go
+++ b/pkg/proxy/ipvs/proxier.go
@@ -448,7 +448,7 @@ func NewProxier(ipt utiliptables.Interface,
var incorrectAddresses []string
nodePortAddresses, incorrectAddresses = utilproxy.FilterIncorrectCIDRVersion(nodePortAddresses, isIPv6)
if len(incorrectAddresses) > 0 {
- klog.Warning("NodePortAddresses of wrong family; ", incorrectAddresses)
+ klog.Warningf("NodePortAddresses of wrong family; %s", incorrectAddresses)
}
proxier := &Proxier{
portsMap: make(map[utilproxy.LocalPort]utilproxy.Closeable),