From cebd539c1759036d4edc6a6682fbea95a6220cf5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 9 Jul 2022 20:54:35 +0100 Subject: [PATCH] [Minor] Fix format string --- src/libserver/http/http_context.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libserver/http/http_context.c b/src/libserver/http/http_context.c index 4366e20ba..ff8e65893 100644 --- a/src/libserver/http/http_context.c +++ b/src/libserver/http/http_context.c @@ -444,22 +444,22 @@ rspamd_http_context_check_keepalive(struct rspamd_http_context *ctx, if (err != 0) { rspamd_http_connection_unref (conn); - msg_debug_http_context ("invalid reused keepalive element %s (%s, ssl=%b); " + msg_debug_http_context ("invalid reused keepalive element %s (%s, ssl=%d); " "%s error; " "%d connections queued", rspamd_inet_address_to_string_pretty (phk->addr), phk->host, - phk->is_ssl, + (int)phk->is_ssl, g_strerror (err), conns->length); return NULL; } - msg_debug_http_context ("reused keepalive element %s (%s, ssl=%b), %d connections queued", + msg_debug_http_context ("reused keepalive element %s (%s, ssl=%d), %d connections queued", rspamd_inet_address_to_string_pretty (phk->addr), phk->host, - phk->is_ssl, + (int)phk->is_ssl, conns->length); /* We transfer refcount here! */ @@ -597,7 +597,7 @@ rspamd_http_parse_keepalive_timeout (const rspamd_ftok_t *tok) if (ndigits > 0) { if (rspamd_strtoul(tok->begin + pos,ndigits, &real_timeout)) { timeout = real_timeout; - msg_debug_http_context ("got timeout attr %.2f", timeout); + msg_debug_http_context ("got timeout attr %l", timeout); } } } -- 2.39.5