From: Christopher Faulet Date: Tue, 29 Aug 2023 08:55:15 +0000 (+0200) Subject: DEBUG: applet: Properly report opposite SC expiration dates in traces X-Git-Tag: v2.9-dev5~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49ed83e94867d1190308b85d3b37eba9469fa998;p=thirdparty%2Fhaproxy.git DEBUG: applet: Properly report opposite SC expiration dates in traces 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. --- diff --git a/src/applet.c b/src/applet.c index 00afaca5da..7298860e53 100644 --- a/src/applet.c +++ b/src/applet.c @@ -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,