From: Frédéric Lécaille Date: Tue, 4 Apr 2023 13:09:53 +0000 (+0200) Subject: BUILD: quic: 32bits compilation issue in cli_io_handler_dump_quic() X-Git-Tag: v2.8-dev7~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdb14949856f9b72152d949d74980beeaaa3469f;p=thirdparty%2Fhaproxy.git BUILD: quic: 32bits compilation issue in cli_io_handler_dump_quic() Replaced a %zu printf format by %llu for an uint64_t. Must be backported to 2.7. --- diff --git a/src/quic_conn.c b/src/quic_conn.c index 23e5f28b52..42abe0712b 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -8390,9 +8390,9 @@ static int cli_io_handler_dump_quic(struct appctx *appctx) chunk_appendf(&trash, " [01rtt] rx.ackrng=%-6zu tx.inflight=%-6zu\n", pktns->rx.arngs.sz, pktns->tx.in_flight); - chunk_appendf(&trash, " srtt=%-4u rttvar=%-4u rttmin=%-4u ptoc=%-4u cwnd=%-6zu\n", + chunk_appendf(&trash, " srtt=%-4u rttvar=%-4u rttmin=%-4u ptoc=%-4u cwnd=%-6llu\n", qc->path->loss.srtt >> 3, qc->path->loss.rtt_var >> 2, - qc->path->loss.rtt_min, qc->path->loss.pto_count, qc->path->cwnd); + qc->path->loss.rtt_min, qc->path->loss.pto_count, (ullong)qc->path->cwnd); /* Streams */