]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: quic: 32bits compilation issue in cli_io_handler_dump_quic()
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 4 Apr 2023 13:09:53 +0000 (15:09 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 4 Apr 2023 16:24:28 +0000 (18:24 +0200)
Replaced a %zu printf format by %llu for an uint64_t.

Must be backported to 2.7.

src/quic_conn.c

index 23e5f28b52f3e23095bf82e70f63a1c8308c5b87..42abe0712bcaf41b432bd43d3d1ca71873affbe5 100644 (file)
@@ -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 */