]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: h3: fix build with DEBUG_H3
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 12 Apr 2022 14:40:52 +0000 (16:40 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 12 Apr 2022 14:42:45 +0000 (16:42 +0200)
qcs by_id field has been replaced by a new field named "id". Adjust the
h3_debug_printf traces. This is the case since the introduction of the
qc_stream_desc type.

src/h3.c

index e39c54135f6e88abcf6b9af19daba99020166fd9..2d450d8b80ca2d73c668d2926473f457c18f37eb 100644 (file)
--- a/src/h3.c
+++ b/src/h3.c
@@ -231,7 +231,7 @@ static int h3_decode_qcs(struct qcs *qcs, int fin, void *ctx)
        struct buffer *rxbuf = &qcs->rx.buf;
        int ret;
 
-       h3_debug_printf(stderr, "%s: STREAM ID: %llu\n", __func__, qcs->by_id.key);
+       h3_debug_printf(stderr, "%s: STREAM ID: %lu\n", __func__, qcs->id);
        if (!b_data(rxbuf))
                return 0;
 
@@ -333,7 +333,7 @@ static int h3_control_recv(struct h3_uqs *h3_uqs, void *ctx)
        struct buffer *rxbuf = &h3_uqs->qcs->rx.buf;
        struct h3 *h3 = ctx;
 
-       h3_debug_printf(stderr, "%s STREAM ID: %llu\n", __func__,  h3_uqs->qcs->by_id.key);
+       h3_debug_printf(stderr, "%s STREAM ID: %lu\n", __func__,  h3_uqs->qcs->id);
        if (!b_data(rxbuf))
                return 1;