From: Vsevolod Stakhov Date: Sat, 9 Jul 2022 19:54:35 +0000 (+0100) Subject: [Minor] Fix format string X-Git-Tag: 3.3~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cebd539c1759036d4edc6a6682fbea95a6220cf5;p=rspamd.git [Minor] Fix format string --- 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); } } }