From 24e116bfe0b14a813e1d3c65687db8acbb695be9 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 12 Jun 2019 11:10:28 +0200 Subject: [PATCH] MINOR: htx: Slightly update htx_dump() to report better messages Sign of , and is respsected to not convert -1 into its unsigned representation. --- include/common/htx.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/common/htx.h b/include/common/htx.h index 1b67c2139..32dd1df4c 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; -- 2.47.3