]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: quic: 32-bits compilation issue with %zu in quic_rx_pkts_del()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 22 Feb 2023 16:24:23 +0000 (17:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Feb 2023 08:23:07 +0000 (09:23 +0100)
commitb7a13be6cd20b3840ae516fc423bae27576314da
tree46a58ae9ab4d0faacfb65c6bb92f50058f412a11
parent28a6d48a604368e3c8ea19fe095b239f0820bd00
BUILD: quic: 32-bits compilation issue with %zu in quic_rx_pkts_del()

This issue arrived with this commit:
    1dbeb35f8 MINOR: quic: Add new traces about by connection RX buffer handling

and revealed by the GH CI as follows:

   src/quic_conn.c: In function â\80\98quic_rx_pkts_delâ\80\99:
    include/haproxy/trace.h:134:65: error: format â\80\98%zuâ\80\99 expects argument of type â\80\98size_tâ\80\99,
    but argument 6 has type â\80\98uint64_tâ\80\99 {aka â\80\98long long unsigned intâ\80\99} [-Werror=format=]
    _msg_len = snprintf(_msg, sizeof(_msg), (fmt), ##args);

Replace all %zu printf integer format by %llu.

Must be backported to 2.7 where the previous is supposed to be backported.
src/quic_conn.c