From: Willy Tarreau Date: Tue, 12 Sep 2023 15:27:07 +0000 (+0200) Subject: DEBUG: pools: also print the item's pointer when crashing X-Git-Tag: v2.9-dev6~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96c1a24224e7b765bfbd391c255860cb3f1390f4;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/pool.c b/src/pool.c index 6c49178b44..f4b99a4327 100644 --- a/src/pool.c +++ b/src/pool.c @@ -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;