diff options
author | Michael Pratt <mpratt@google.com> | 2021-10-15 13:49:48 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-15 13:52:42 -0700 |
commit | 04dc27899bbdeb9bbce2b2647856d160e8ccd78d (patch) | |
tree | 964cdb86d4d68975c30347c41df4247a92e49d6e /test/benchmarks/tcp | |
parent | 33b41d8fe98e7820118e8d42b0cfbec4ca159d62 (diff) |
Fix incorrect printf verb
tcpip.Error does not implement error and thus cannot be used with %w.
This was flagged by nogo.
PiperOrigin-RevId: 403458480
Diffstat (limited to 'test/benchmarks/tcp')
-rw-r--r-- | test/benchmarks/tcp/tcp_proxy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/benchmarks/tcp/tcp_proxy.go b/test/benchmarks/tcp/tcp_proxy.go index bc0d8fd38..8273b12a7 100644 --- a/test/benchmarks/tcp/tcp_proxy.go +++ b/test/benchmarks/tcp/tcp_proxy.go @@ -213,7 +213,7 @@ func newNetstackImpl(mode string) (impl, error) { AddressWithPrefix: parsedAddr.WithPrefix(), } if err := s.AddProtocolAddress(nicID, protocolAddr, stack.AddressProperties{}); err != nil { - return nil, fmt.Errorf("error adding IP address %+v to %q: %w", protocolAddr, *iface, err) + return nil, fmt.Errorf("error adding IP address %+v to %q: %s", protocolAddr, *iface, err) } subnet, err := tcpip.NewSubnet(parsedDest, parsedMask) |