]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEBUG: applet: Properly report opposite SC expiration dates in traces
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Aug 2023 08:55:15 +0000 (10:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 1 Sep 2023 12:18:26 +0000 (14:18 +0200)
The wrong label was used in trace to report expiration dates of the opposite
SC. "sc" was used instead of "sco".

This patch should be backported to 2.8.

src/applet.c

index 00afaca5dacb0e1e6147a66899ef19bb8eb73282..7298860e5316893cdb2faa85fc933c89301c57ce 100644 (file)
@@ -138,7 +138,7 @@ static void applet_trace(enum trace_level level, uint64_t mask, const struct tra
 
        chunk_appendf(&trace_buf, " - s=(%p,0x%08x,0x%x)", s, s->flags, s->conn_err_type);
 
-       chunk_appendf(&trace_buf, " sc=(%p,%d,0x%08x,0x%x) sco=(%p,%d,0x%08x,0x%x) sc.exp(r,w)=(%d,%d) sc.exp(r,w)=(%d,%d)",
+       chunk_appendf(&trace_buf, " sc=(%p,%d,0x%08x,0x%x) sco=(%p,%d,0x%08x,0x%x) sc.exp(r,w)=(%d,%d) sco.exp(r,w)=(%d,%d)",
                      sc, sc->state, sc->flags, sc->sedesc->flags,
                      sco, sco->state, sco->flags, sco->sedesc->flags,
                      tick_isset(sc_ep_rcv_ex(sc)) ? TICKS_TO_MS(sc_ep_rcv_ex(sc) - now_ms) : TICK_ETERNITY,