]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: stream: Remove an excess newline in the stream dump
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Sep 2026 07:02:22 +0000 (09:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 15 Sep 2026 05:39:02 +0000 (07:39 +0200)
When the function dumping a stream was update by the commit c044fdbf4
("BUG/MINOR: stream/debug: harden the stream dump function regarding
signals"), an extra newline character was forgotten. Let's remove it.

This patch must be backported with the commit above.

src/stream.c

index d2e3a7099e31cef212e38a521b1138a2753a89e7..cbb5986086f2d22c28676b3bc0ab334ff78863d1 100644 (file)
@@ -3696,7 +3696,7 @@ static void __strm_dump_to_buffer(struct buffer *buf, const struct show_sess_ctx
                              sdf && sc_ep_snd_ex(scf) ? human_time(TICKS_TO_MS(sc_ep_snd_ex(scf) - now_ms), TICKS_TO_MS(1000)) : "<NEVER>");
                chunk_appendf(buf, " rto=%s",
                              sdf && tick_isset(sdf->lra) ? human_time(TICKS_TO_MS(tick_add(sdf->lra, scf->ioto) - now_ms), TICKS_TO_MS(1000)) : "<NEVER>");
-               chunk_appendf(buf, " wto=%s\n",
+               chunk_appendf(buf, " wto=%s",
                              sdf && tick_isset(sdf->fsb) ? human_time(TICKS_TO_MS(tick_add(sdf->fsb, scf->ioto) - now_ms), TICKS_TO_MS(1000)) : "<NEVER>");
        }