]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix 'Error creating TCP worker' error message 14337/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jun 2024 10:25:21 +0000 (12:25 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 17 Jun 2024 09:21:37 +0000 (11:21 +0200)
There is a dangling '%' at the end of the format string, which is
only a formatting issue because of the way our logger works but is
still ugly.

(cherry picked from commit 7d545ae15324d844c2f95b3ccf0045179bc39db0)

pdns/dnsdist-tcp.cc

index e3eb68e1152c4e50cb5f5db069f5b89ba590501a..344dbcae070ef5ae5da3cf22d1d65e2d42531069 100644 (file)
@@ -170,7 +170,7 @@ void TCPClientCollection::addTCPClientThread(std::vector<ClientState*>& tcpAccep
     ++d_numthreads;
   }
   catch (const std::exception& e) {
-    errlog("Error creating TCP worker: %", e.what());
+    errlog("Error creating TCP worker: %s", e.what());
   }
 }