From: Christopher Faulet Date: Tue, 5 May 2026 16:35:15 +0000 (+0200) Subject: DEBUG: haterm: Add hstream flags in the trace messages X-Git-Tag: v3.4-dev11~32 X-Git-Url: http://www.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=a68b96ad369515c2d1afcf632dd2f7f1c0693849;p=haproxy.git DEBUG: haterm: Add hstream flags in the trace messages It could be useful to know the hstream state on debugging sessions. --- diff --git a/src/haterm.c b/src/haterm.c index f79fb1371..5ab891e5e 100644 --- a/src/haterm.c +++ b/src/haterm.c @@ -143,8 +143,8 @@ static void hterm_trace(enum trace_level level, uint64_t mask, const struct trac chunk_appendf(&trace_buf, " hs@%p ", hs); if (hs) { - chunk_appendf(&trace_buf, " res=%u req=%u req_size=%llu to_write=%llu req_body=%llu", - (unsigned int)b_data(&hs->res), (unsigned int)b_data(&hs->res), + chunk_appendf(&trace_buf, " flags=0x%04x res=%u req=%u req_size=%llu to_write=%llu req_body=%llu", + hs->flags, (unsigned int)b_data(&hs->res), (unsigned int)b_data(&hs->res), hs->req_size, hs->to_write, hs->req_body); }