Skip to content

Commit

Permalink
BUILD: applet: fix build on some 32-bit archs
Browse files Browse the repository at this point in the history
The to_forward field was added to debugging output of applets with commit
62a81cb ("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.
  • Loading branch information
wtarreau committed Feb 21, 2024
1 parent 8b950f4 commit 9d57295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/applet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d57295

Please sign in to comment.