From: Willy Tarreau Date: Mon, 21 Oct 2024 02:17:59 +0000 (+0200) Subject: BUILD: mux-h2/traces: fix build on 32-bit due to size of the DATA frame X-Git-Tag: v3.1-dev11~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aa86b9dbde5cfa9cb6ca39e36b9035a964903eb;p=thirdparty%2Fhaproxy.git BUILD: mux-h2/traces: fix build on 32-bit due to size of the DATA frame Commit cf3fe1eed ("MINOR: mux-h2/traces: print the size of the DATA frames") added the size of the DATA frame to the traces. Unfortunately it uses ullong instead of ulong to cast a pointer, which breaks the build on 32-bit platforms. Let's just switch it to ulong which works on both. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 4cf97389a4..74fb367461 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -632,7 +632,7 @@ static void h2_trace(enum trace_level level, uint64_t mask, const struct trace_s } if ((mask & H2_EV_RX_DATA) && level == TRACE_LEVEL_DATA) - chunk_appendf(&trace_buf, " data=%llu", (ullong)a4); + chunk_appendf(&trace_buf, " data=%lu", (ulong)a4); } /* Let's dump decoded requests and responses right after parsing. They