From: Willy Tarreau Date: Wed, 21 Feb 2024 03:16:16 +0000 (+0100) Subject: BUILD: applet: fix build on some 32-bit archs X-Git-Tag: v3.0-dev4~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d572952a299cad0d90ce25996668db6006e27d9;p=thirdparty%2Fhaproxy.git BUILD: applet: fix build on some 32-bit archs The to_forward field was added to debugging output of applets with commit 62a81cb6a ("MINOR: applet: Add callback function to deal with zero-copy forwarding"), though it's a size_t printed as %lu, which causes complaints on 32-bit archs. Let's just cast as %lu. No backport is needed. --- diff --git a/src/applet.c b/src/applet.c index 303d9f7080..615cf3ef09 100644 --- a/src/applet.c +++ b/src/applet.c @@ -142,7 +142,7 @@ static void applet_trace(enum trace_level level, uint64_t mask, const struct tra chunk_appendf(&trace_buf, " appctx=%p .t=%p .t.exp=%d .flags=0x%x .st0=%d .st1=%d to_fwd=%lu", appctx, appctx->t, tick_isset(appctx->t->expire) ? TICKS_TO_MS(appctx->t->expire - now_ms) : TICK_ETERNITY, - appctx->flags, appctx->st0, appctx->st1, appctx->to_forward); + appctx->flags, appctx->st0, appctx->st1, (ulong)appctx->to_forward); if (!sc || src->verbosity == STRM_VERB_MINIMAL) return;