From 7b60a7047d982ba99cc6c0974bfb4eccf35fa705 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 21 Aug 2024 15:44:44 +0200 Subject: [PATCH] libnetwork/cnmallocator: fix non-constant format string in call (govet) libnetwork/cnmallocator/drivers_ipam.go:43:31: printf: non-constant format string in call to (*github.com/docker/docker/vendor/github.com/sirupsen/logrus.Entry).Infof (govet) log.G(context.TODO()).Infof("Swarm initialized global default address pool to: " + str.String()) ^ Signed-off-by: Sebastiaan van Stijn --- libnetwork/cnmallocator/drivers_ipam.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetwork/cnmallocator/drivers_ipam.go b/libnetwork/cnmallocator/drivers_ipam.go index 37b8ba7d97..afecc29bd7 100644 --- a/libnetwork/cnmallocator/drivers_ipam.go +++ b/libnetwork/cnmallocator/drivers_ipam.go @@ -40,7 +40,7 @@ func initIPAMDrivers(r ipamapi.Registerer, netConfig *networkallocator.Config) e } if len(addressPool) > 0 { - log.G(context.TODO()).Infof("Swarm initialized global default address pool to: " + str.String()) + log.G(context.TODO()).Info("Swarm initialized global default address pool to: " + str.String()) } if err := ipams.Register(r, nil, nil, addressPool); err != nil {