From a68b96ad369515c2d1afcf632dd2f7f1c0693849 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 5 May 2026 18:35:15 +0200 Subject: [PATCH] DEBUG: haterm: Add hstream flags in the trace messages It could be useful to know the hstream state on debugging sessions. --- src/haterm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }