From: Christopher Faulet Date: Wed, 12 Jun 2019 09:10:28 +0000 (+0200) Subject: MINOR: htx: Slightly update htx_dump() to report better messages X-Git-Tag: v2.1-dev2~378 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e116bfe0b14a813e1d3c65687db8acbb695be9;p=thirdparty%2Fhaproxy.git MINOR: htx: Slightly update htx_dump() to report better messages Sign of , and is respsected to not convert -1 into its unsigned representation. --- diff --git a/include/common/htx.h b/include/common/htx.h index 1b67c21396..32dd1df4c0 100644 --- a/include/common/htx.h +++ b/include/common/htx.h @@ -811,10 +811,8 @@ static inline void htx_dump(struct htx *htx) htx, htx->size, htx->data, htx_nbblks(htx), (!htx->head_addr) ? "NO" : "YES", (unsigned long long)htx->extra); - fprintf(stderr, "\tfirst=%d - head=%u, tail=%u\n", - htx->first, htx->head, htx->tail); - fprintf(stderr, "\ttail_addr=%d - head_addr=%u, end_addr=%u\n", - htx->tail_addr, htx->head_addr, htx->end_addr); + fprintf(stderr, "\tfirst=%d - head=%d - tail=%d - tail_addr=%d - head_addr=%d, end_addr=%d\n", + htx->first, htx->head, htx->tail, htx->tail_addr, htx->head_addr, htx->end_addr); for (pos = htx_get_head(htx); pos != -1; pos = htx_get_next(htx, pos)) { struct htx_sl *sl;