From 8520d87198fa0682816f1d8ebcc831ecd0bfba5d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 18 Sep 2020 07:39:29 +0200 Subject: [PATCH] MINOR: h2/trace: also display the remaining frame length in traces It's often missing when debugging, even though it's often zero for control frames or after data are consumed. --- src/mux_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 15cafea5c..1a9f15ca2 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -508,7 +508,7 @@ static void h2_trace(enum trace_level level, uint64_t mask, const struct trace_s if (h2c->dsi >= 0 && (mask & (H2_EV_RX_FRAME|H2_EV_RX_FHDR)) == (H2_EV_RX_FRAME|H2_EV_RX_FHDR)) { - chunk_appendf(&trace_buf, " dft=%s/%02x", h2_ft_str(h2c->dft), h2c->dff); + chunk_appendf(&trace_buf, " dft=%s/%02x dfl=%d", h2_ft_str(h2c->dft), h2c->dff, h2c->dfl); } if (h2s) {