Skip to content

Commit

Permalink
DEBUG: stream: Fix stream trace message to print response buffer state
Browse files Browse the repository at this point in the history
Channels buffer state is displayed in the strem trace messages. However,
because of a typo, the request buffer was used instead of the response one.

This patch should be backported as far as 2.2.
  • Loading branch information
capflam committed Mar 8, 2022
1 parent 5001913 commit 5ce1299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ static void strm_trace(enum trace_level level, uint64_t mask, const struct trace
chunk_appendf(&trace_buf, " buf=(%u@%p+%u/%u, %u@%p+%u/%u)",
(unsigned int)b_data(&req->buf), b_orig(&req->buf),
(unsigned int)b_head_ofs(&req->buf), (unsigned int)b_size(&req->buf),
(unsigned int)b_data(&req->buf), b_orig(&req->buf),
(unsigned int)b_head_ofs(&req->buf), (unsigned int)b_size(&req->buf));
(unsigned int)b_data(&res->buf), b_orig(&res->buf),
(unsigned int)b_head_ofs(&res->buf), (unsigned int)b_size(&res->buf));
}

/* If msg defined, display htx info if defined (level > USER) */
Expand Down

0 comments on commit 5ce1299

Please sign in to comment.