From: Fabian Keil Date: Fri, 11 Sep 2020 11:36:52 +0000 (+0200) Subject: remove_chunked_transfer_coding(): Use appropriate format specifiers in two log messages X-Git-Tag: v_3_0_29~141 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=4ca938b3eaf03aa8af6600ef2fd34a9476f21e89;ds=sidebyside remove_chunked_transfer_coding(): Use appropriate format specifiers in two log messages --- diff --git a/filters.c b/filters.c index 6945d2f6..13cba16a 100644 --- a/filters.c +++ b/filters.c @@ -2066,8 +2066,8 @@ static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size) { log_error(LOG_LEVEL_ERROR, "Chunk size %u exceeds buffered data left. " - "Already digested %u of %u buffered bytes.", - chunksize, (unsigned int)newsize, (unsigned int)*size); + "Already digested %lu of %lu buffered bytes.", + chunksize, newsize, *size); return JB_ERR_PARSE; } @@ -2121,7 +2121,8 @@ static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size) } /* XXX: Should get its own loglevel. */ - log_error(LOG_LEVEL_RE_FILTER, "De-chunking successful. Shrunk from %d to %d", *size, newsize); + log_error(LOG_LEVEL_RE_FILTER, + "De-chunking successful. Shrunk from %lu to %lu", *size, newsize); *size = newsize;