]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: htx: Slightly update htx_dump() to report better messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Jun 2019 09:10:28 +0000 (11:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
Sign of <tail_addr>, <head_addr> and <end_addr> is respsected to not convert -1
into its unsigned representation.

include/common/htx.h

index 1b67c213966af00cefe7cf8ded33c3c1bd97a210..32dd1df4c0111a2df85068d835b060cd14573418 100644 (file)
@@ -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;