From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 12:34:39 +0000 (+0200)
Subject: filter_header(): Fix format specifiers in two log messages
X-Git-Tag: v_3_0_29~122
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/static/@default-cgi@/static/@proxy-info-url@?a=commitdiff_plain;h=f9dd5c2df9909bcc409394f746777e55a76823dd;p=privoxy.git

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

diff --git a/parsers.c b/parsers.c
index c6f50eb6..23429373 100644
--- a/parsers.c
+++ b/parsers.c
@@ -1667,7 +1667,7 @@ static jb_err filter_header(struct client_state *csp, char **header)
          continue;
       }
 
-      log_error(LOG_LEVEL_RE_FILTER, "filtering \'%s\' (size %d) with \'%s\' ...",
+      log_error(LOG_LEVEL_RE_FILTER, "filtering \'%s\' (size %lu) with \'%s\' ...",
          *header, size, b->name);
 
       /* Apply all jobs from the joblist */
@@ -1701,7 +1701,8 @@ static jb_err filter_header(struct client_state *csp, char **header)
 
       if (b->dynamic) pcrs_free_joblist(joblist);
 
-      log_error(LOG_LEVEL_RE_FILTER, "... produced %d hits (new size %d).", current_hits, size);
+      log_error(LOG_LEVEL_RE_FILTER,
+         "... produced %d hits (new size %lu).", current_hits, size);
       hits += current_hits;
    }