From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 14:48:27 +0000 (+0200)
Subject: listen_loop(): Fix format specifiers in two log messages
X-Git-Tag: v_3_0_29~107
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/user-manual/faq/static/@default-cgi@show-url-info?a=commitdiff_plain;h=d52db18f24d7242e3723ad5a576e1f9cd0d52043;p=privoxy.git

listen_loop(): Fix format specifiers in two log messages
---

diff --git a/jcc.c b/jcc.c
index 49a6b108..d1ae1eec 100644
--- a/jcc.c
+++ b/jcc.c
@@ -5512,7 +5512,7 @@ static void listen_loop(void)
       csp = &csp_list->csp;
 
       log_error(LOG_LEVEL_CONNECT,
-         "Waiting for the next client connection. Currently active threads: %d",
+         "Waiting for the next client connection. Currently active threads: %u",
          active_threads);
 
       /*
@@ -5729,7 +5729,7 @@ static void listen_loop(void)
              * XXX: If you assume ...
              */
             log_error(LOG_LEVEL_ERROR,
-               "Unable to take any additional connections: %E. Active threads: %d",
+               "Unable to take any additional connections: %E. Active threads: %u",
                active_threads);
             write_socket_delayed(csp->cfd, TOO_MANY_CONNECTIONS_RESPONSE,
                strlen(TOO_MANY_CONNECTIONS_RESPONSE), get_write_delay(csp));