From c5d0fc9b9f165c4dcbe0ff849c740702bd732a01 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 15 Sep 2021 10:30:40 +0200 Subject: [PATCH] BUILD: sample: fix format warning on 32-bit archs in sample_conv_be2dec_check() The sizeof() was printed as a long but it's just an unsigned on some 32-bit platforms, hence the format warning. No backport is needed, as this arrived in 2.5 with commit 40ca09c7b ("MINOR: sample: Add be2dec converter"). --- src/sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sample.c b/src/sample.c index 3126be1056..ab37a9674b 100644 --- a/src/sample.c +++ b/src/sample.c @@ -2070,7 +2070,7 @@ static int sample_conv_be2dec_check(struct arg *args, struct sample_conv *conv, const char *file, int line, char **err) { if (args[1].data.sint <= 0 || args[1].data.sint > sizeof(unsigned long long)) { - memprintf(err, "chunk_size out of [1..%ld] range (%lld)", sizeof(unsigned long long), args[1].data.sint); + memprintf(err, "chunk_size out of [1..%u] range (%lld)", (uint)sizeof(unsigned long long), args[1].data.sint); return 0; }