From: Amaury Denoyelle Date: Fri, 25 Mar 2022 14:28:33 +0000 (+0100) Subject: CLEANUP: h3: suppress by default stdout traces X-Git-Tag: v2.6-dev4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8769d1d877e22d6d50737fc0f1ffb644535a4b2;p=thirdparty%2Fhaproxy.git CLEANUP: h3: suppress by default stdout traces H3_DEBUG definition is removed from h3.c similarly to the commit d96361b2703a6364c1116af76016f09807b4c65b CLEANUP: qpack: suppress by default stdout traces Also, a plain fprintf in h3_snd_buf has been replaced to be conditional to the H3_DEBUG definition. These changes reduces the default output on stdout with QUIC traffic. --- diff --git a/src/h3.c b/src/h3.c index 7fbd483c6b..711ba23e6d 100644 --- a/src/h3.c +++ b/src/h3.c @@ -33,8 +33,6 @@ #include #include -#define DEBUG_H3 - #if defined(DEBUG_H3) #define h3_debug_printf fprintf #define h3_debug_hexdump debug_hexdump @@ -651,7 +649,7 @@ size_t h3_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t count, int int32_t idx; int ret; - fprintf(stderr, "%s\n", __func__); + h3_debug_printf(stderr, "%s\n", __func__); htx = htx_from_buf(buf);