mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-11 03:31:36 +00:00
BUG/MINOR: quic: fix type bug on "show quic" for 32-bits arch
Incorrect printf format specifier "%lu" was used on "show quic" handler for uint64_t. This breaks build on 32-bits architecture. To fix this portability issue, force an explicit cast to unsigned long long with "%llu" specifier. This must be backported up to 2.7.
This commit is contained in:
parent
71c486b290
commit
a9de25a559
@ -7788,8 +7788,10 @@ static int cli_io_handler_dump_quic(struct appctx *appctx)
|
|||||||
stream = eb64_entry(node, struct qc_stream_desc, by_id);
|
stream = eb64_entry(node, struct qc_stream_desc, by_id);
|
||||||
node = eb64_next(node);
|
node = eb64_next(node);
|
||||||
|
|
||||||
chunk_appendf(&trash, " | stream=%-8llu", (long long unsigned int)stream->by_id.key);
|
chunk_appendf(&trash, " | stream=%-8llu", (unsigned long long)stream->by_id.key);
|
||||||
chunk_appendf(&trash, " off=%-8lu ack=%-8lu", stream->buf_offset, stream->ack_offset);
|
chunk_appendf(&trash, " off=%-8llu ack=%-8llu",
|
||||||
|
(unsigned long long)stream->buf_offset,
|
||||||
|
(unsigned long long)stream->ack_offset);
|
||||||
|
|
||||||
if (!(++i % 3)) {
|
if (!(++i % 3)) {
|
||||||
chunk_appendf(&trash, "\n");
|
chunk_appendf(&trash, "\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user