From 4ca938b3eaf03aa8af6600ef2fd34a9476f21e89 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 11 Sep 2020 13:36:52 +0200 Subject: [PATCH] remove_chunked_transfer_coding(): Use appropriate format specifiers in two log messages --- filters.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; -- 2.39.2