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:
Willy Tarreau 2023-09-12 17:27:07 +02:00
parent 84757e32e6
commit 96c1a24224

View File

@ -951,8 +951,9 @@ void pool_inspect_item(const char *msg, struct pool_head *pool, const void *item
chunk_appendf(&trash,
")\n"
" item: %p\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) {
const void **pool_mark;