From 7fe753c85a99c1791f7d0df55df4b55c93dc66fb Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 8 Mar 2022 15:48:55 +0100 Subject: [PATCH] DEBUG: stream: Fix stream trace message to print response buffer state 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. (cherry picked from commit 5ce1299c643543c9b17b4124b299feb3caf63d9e) Signed-off-by: Christopher Faulet --- src/stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream.c b/src/stream.c index cb25314..956f89d 100644 --- a/src/stream.c +++ b/src/stream.c @@ -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) */ -- 1.7.10.4