From 8b6ea1710529ca07c34790977c3a76f760146e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 17 Jan 2022 10:51:43 +0100 Subject: [PATCH] MINOR: quic: Add the number of TX bytes to traces This should be helpful to diagnose some issues regarding packet loss and recovery issues. --- src/xprt_quic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index f9d61e29d..61ba70dc0 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -305,7 +305,9 @@ static void quic_trace(enum trace_level level, uint64_t mask, const struct trace chunk_appendf(&trace_buf, " pn=%llu",(ull)pkt->pn_node.key); list_for_each_entry(frm, &pkt->frms, list) chunk_frm_appendf(&trace_buf, frm); - chunk_appendf(&trace_buf, " tx.bytes=%llu", (unsigned long long)qc->tx.bytes); + chunk_appendf(&trace_buf, " rx.bytes=%llu tx.bytes=%llu", + (unsigned long long)qc->rx.bytes, + (unsigned long long)qc->tx.bytes); } if (room) {