From cd0d1c226596ae9ab35a8f9f7992755139294f6a Mon Sep 17 00:00:00 2001 From: Asgeir Storesund Nilsen Date: Mon, 8 Aug 2022 11:01:42 +0200 Subject: [PATCH] Use stringerror Co-authored-by: Remi Gacogne --- pdns/dnsdist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 709cf7161e..39e9c57447 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1091,7 +1091,7 @@ ssize_t udpClientSendRequestToBackend(const std::shared_ptr& ss if (result == -1) { int savederrno = errno; - vinfolog("Error sending request to backend %s: %s", ss->d_config.remote.toStringWithPort(), strerror(savederrno)); + vinfolog("Error sending request to backend %s: %s", ss->d_config.remote.toStringWithPort(), stringerror(savederrno)); /* This might sound silly, but on Linux send() might fail with EINVAL if the interface the socket was bound to doesn't exist anymore. -- 2.47.2