]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: quic: QUIC mux build fix for 32-bit build
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 14 Oct 2022 20:10:50 +0000 (22:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Oct 2022 20:43:08 +0000 (22:43 +0200)
Thank you to Ilya for having reported this issue in GH #1897

Must be backported to 2.6.

src/qmux_trace.c

index 7899bff668325349311d33d0a8430d763bd68f9a..00a1d8d27f93057f8e00d9b7cb8682715234457c 100644 (file)
@@ -44,13 +44,13 @@ static void qmux_trace_frm(const struct quic_frame *frm)
 {
        switch (frm->type) {
        case QUIC_FT_MAX_STREAMS_BIDI:
-               chunk_appendf(&trace_buf, " max_streams=%lu",
-                             frm->max_streams_bidi.max_streams);
+               chunk_appendf(&trace_buf, " max_streams=%llu",
+                             (ullong)frm->max_streams_bidi.max_streams);
                break;
 
        case QUIC_FT_MAX_STREAMS_UNI:
-               chunk_appendf(&trace_buf, " max_streams=%lu",
-                             frm->max_streams_uni.max_streams);
+               chunk_appendf(&trace_buf, " max_streams=%llu",
+                             (ullong)frm->max_streams_uni.max_streams);
                break;
 
        default: