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),