From 7d6c6c53d7283529cc1f7942f898ab4f3768a2f6 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 11 Sep 2020 13:32:36 +0200 Subject: [PATCH] execute_external_filter(): Fix format specifiers in two log messages --- filters.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filters.c b/filters.c index 973c5d10..cae3c846 100644 --- a/filters.c +++ b/filters.c @@ -1823,7 +1823,7 @@ static char *execute_external_filter(const struct client_state *csp, */ if ((*size != 0) && fwrite(content, *size, 1, fp) != 1) { - log_error(LOG_LEVEL_ERROR, "fwrite(..., %d, 1, ..) failed: %E", *size); + log_error(LOG_LEVEL_ERROR, "fwrite(..., %lu, 1, ..) failed: %E", *size); unlink(file_name); fclose(fp); return NULL; @@ -1899,7 +1899,7 @@ static char *execute_external_filter(const struct client_state *csp, { log_error(LOG_LEVEL_RE_FILTER, "Executing '%s' resulted in return value %d. " - "Read %d of up to %d bytes.", name, (ret >> 8), new_size, *size); + "Read %lu of up to %lu bytes.", name, (ret >> 8), new_size, *size); } unlink(file_name); -- 2.39.2