]> git.kaiwu.me - haproxy.git/commitdiff
DEBUG: haterm: Add hstream flags in the trace messages
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 16:35:15 +0000 (18:35 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2026 17:07:59 +0000 (19:07 +0200)
It could be useful to know the hstream state on debugging sessions.

src/haterm.c

index f79fb13713cd819c6747adcfda954b76571663f7..5ab891e5e4c319a9c09404b6e6a1d410739ce7c9 100644 (file)
@@ -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);
        }