mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
MINOR: htx: Slightly update htx_dump() to report better messages
Sign of <tail_addr>, <head_addr> and <end_addr> is respsected to not convert -1 into its unsigned representation.
This commit is contained in:
parent
2bf43f0746
commit
24e116bfe0
@ -811,10 +811,8 @@ static inline void htx_dump(struct htx *htx)
|
|||||||
htx, htx->size, htx->data, htx_nbblks(htx),
|
htx, htx->size, htx->data, htx_nbblks(htx),
|
||||||
(!htx->head_addr) ? "NO" : "YES",
|
(!htx->head_addr) ? "NO" : "YES",
|
||||||
(unsigned long long)htx->extra);
|
(unsigned long long)htx->extra);
|
||||||
fprintf(stderr, "\tfirst=%d - head=%u, tail=%u\n",
|
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->first, htx->head, htx->tail, htx->tail_addr, htx->head_addr, htx->end_addr);
|
||||||
fprintf(stderr, "\ttail_addr=%d - head_addr=%u, end_addr=%u\n",
|
|
||||||
htx->tail_addr, htx->head_addr, htx->end_addr);
|
|
||||||
|
|
||||||
for (pos = htx_get_head(htx); pos != -1; pos = htx_get_next(htx, pos)) {
|
for (pos = htx_get_head(htx); pos != -1; pos = htx_get_next(htx, pos)) {
|
||||||
struct htx_sl *sl;
|
struct htx_sl *sl;
|
||||||
|
Loading…
Reference in New Issue
Block a user