]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: complete trace in qc_may_build_pkt()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 25 Oct 2024 14:27:59 +0000 (16:27 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 31 Oct 2024 14:35:31 +0000 (15:35 +0100)
Log the encryption level in qc_may_build_pkt(). This is necessary to
fully understand the sending conditions of the QUIC stack.

src/quic_tx.c

index 001a745e646f49f97e0e4e2db7625d557c2e0e4b..b2ad2ad3475a4c156432bbb60ca34d74bc3b66e3 100644 (file)
@@ -199,7 +199,8 @@ static int qc_may_build_pkt(struct quic_conn *qc, struct list *frms,
                 (force_ack || nb_aepkts_since_last_ack >= QUIC_MAX_RX_AEPKTS_SINCE_LAST_ACK));
 
        TRACE_PRINTF(TRACE_LEVEL_DEVELOPER, QUIC_EV_CONN_PHPKTS, qc, 0, 0, 0,
-                    "has_sec=%d cc=%d probe=%d must_ack=%d frms=%d prep_in_fligh=%llu cwnd=%llu",
+                    "%c has_sec=%d cc=%d probe=%d must_ack=%d frms=%d prep_in_fligh=%llu cwnd=%llu",
+                    quic_enc_level_char_from_qel(qel, qc),
                     quic_tls_has_tx_sec(qel), cc, probe, *must_ack, LIST_ISEMPTY(frms),
                     (ullong)qc->path->prep_in_flight, (ullong)qc->path->cwnd);