commit cebd539: [Minor] Fix format string

Vsevolod Stakhov vsevolod at rspamd.com
Sat Jul 9 19:56:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-07-09 20:54:35 +0100
URL: https://github.com/rspamd/rspamd/commit/cebd539c1759036d4edc6a6682fbea95a6220cf5 (HEAD -> master)

[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);
 			}
 		}
 	}


More information about the Commits mailing list