From e47adca4322f55884fc74c1eb78561cbf8baa758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 7 Apr 2023 18:12:00 +0200 Subject: [PATCH] MINOR: quic: Dump more information at proto level when building packets This should be helpful to debug issues at without too much traces. Must be backported to 2.7 and 2.6. --- src/quic_conn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/quic_conn.c b/src/quic_conn.c index 1a9edc698..0cce20b2c 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -3433,7 +3433,7 @@ static int qc_prep_app_pkts(struct quic_conn *qc, struct buffer *buf, while (b_contig_space(buf) >= (int)qc->path->mtu + dg_headlen) { int err, probe, cc; - TRACE_POINT(QUIC_EV_CONN_PHPKTS, qc, qel); + TRACE_PROTO("TX prep app pkts", QUIC_EV_CONN_PHPKTS, qc, qel); probe = 0; cc = qc->flags & QUIC_FL_CONN_IMMEDIATE_CLOSE; /* We do not probe if an immediate close was asked */ @@ -3463,7 +3463,7 @@ static int qc_prep_app_pkts(struct quic_conn *qc, struct buffer *buf, * MTU, we are here because of the congestion control window. There is * no need to try to reuse this buffer. */ - TRACE_DEVEL("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc); + TRACE_PROTO("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc, qel); goto out; default: break; @@ -3538,7 +3538,7 @@ static int qc_prep_pkts(struct quic_conn *qc, struct buffer *buf, (qel == &qc->els[QUIC_TLS_ENC_LEVEL_INITIAL] || qel == &qc->els[QUIC_TLS_ENC_LEVEL_HANDSHAKE]); - TRACE_PROTO("TX prep pks", QUIC_EV_CONN_PHPKTS, qc, qel); + TRACE_PROTO("TX prep pkts", QUIC_EV_CONN_PHPKTS, qc, qel); probe = 0; cc = qc->flags & QUIC_FL_CONN_IMMEDIATE_CLOSE; /* We do not probe if an immediate close was asked */ @@ -3619,7 +3619,7 @@ static int qc_prep_pkts(struct quic_conn *qc, struct buffer *buf, */ if (prv_pkt) qc_txb_store(buf, dglen, first_pkt); - TRACE_DEVEL("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc); + TRACE_PROTO("could not prepare anymore packet", QUIC_EV_CONN_PHPKTS, qc, qel); goto out; default: break;