DEBUG: haterm: Add hstream flags in the trace messages

It could be useful to know the hstream state on debugging sessions.
This commit is contained in:
Christopher Faulet 2026-05-05 18:35:15 +02:00
parent 6e7802ca36
commit a68b96ad36

View 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);
}