diff --git a/pkg/proxy/iptables/proxier.go b/pkg/proxy/iptables/proxier.go index a3946d83c4c..1678ed9902e 100644 --- a/pkg/proxy/iptables/proxier.go +++ b/pkg/proxy/iptables/proxier.go @@ -297,7 +297,7 @@ func NewProxier(ipt utiliptables.Interface, var incorrectAddresses []string nodePortAddresses, incorrectAddresses = utilproxy.FilterIncorrectCIDRVersion(nodePortAddresses, ipFamily) if len(incorrectAddresses) > 0 { - klog.Warning("NodePortAddresses of wrong family; ", incorrectAddresses) + klog.Warningf("NodePortAddresses of wrong family; %s", incorrectAddresses) } proxier := &Proxier{ diff --git a/pkg/proxy/ipvs/proxier.go b/pkg/proxy/ipvs/proxier.go index a34b181640d..7d67008332c 100644 --- a/pkg/proxy/ipvs/proxier.go +++ b/pkg/proxy/ipvs/proxier.go @@ -453,7 +453,7 @@ func NewProxier(ipt utiliptables.Interface, var incorrectAddresses []string nodePortAddresses, incorrectAddresses = utilproxy.FilterIncorrectCIDRVersion(nodePortAddresses, ipFamily) if len(incorrectAddresses) > 0 { - klog.Warning("NodePortAddresses of wrong family; ", incorrectAddresses) + klog.Warningf("NodePortAddresses of wrong family; %s", incorrectAddresses) } proxier := &Proxier{ ipFamily: ipFamily,