From fdb14949856f9b72152d949d74980beeaaa3469f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 4 Apr 2023 15:09:53 +0200 Subject: [PATCH] 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. --- src/quic_conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quic_conn.c b/src/quic_conn.c index 23e5f28b5..42abe0712 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 */