mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
DEBUG: pools: also print the item's pointer when crashing
It's important to inspect a core or recognize some values to have the item pointer, it was not provided.
This commit is contained in:
parent
84757e32e6
commit
96c1a24224
@ -951,8 +951,9 @@ void pool_inspect_item(const char *msg, struct pool_head *pool, const void *item
|
|||||||
|
|
||||||
chunk_appendf(&trash,
|
chunk_appendf(&trash,
|
||||||
")\n"
|
")\n"
|
||||||
|
" item: %p\n"
|
||||||
" pool: %p ('%s', size %u, real %u, users %u)\n",
|
" pool: %p ('%s', size %u, real %u, users %u)\n",
|
||||||
pool, pool->name, pool->size, pool->alloc_sz, pool->users);
|
item, pool, pool->name, pool->size, pool->alloc_sz, pool->users);
|
||||||
|
|
||||||
if (pool_debugging & POOL_DBG_TAG) {
|
if (pool_debugging & POOL_DBG_TAG) {
|
||||||
const void **pool_mark;
|
const void **pool_mark;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user