From 897707854a8240d026e933215009f931bb9c5762 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 23 Jan 2011 12:02:04 +0100 Subject: [PATCH] Add pool memory debug output --- bacula/src/lib/mem_pool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bacula/src/lib/mem_pool.c b/bacula/src/lib/mem_pool.c index 2c8f9e4f69..a371fdd737 100644 --- a/bacula/src/lib/mem_pool.c +++ b/bacula/src/lib/mem_pool.c @@ -404,7 +404,10 @@ void close_memory_pool() } pool_ctl[i].free_buf = NULL; } - Dmsg2(100, "Freed mem_pool count=%d size=%s\n", count, edit_uint64_with_commas(bytes, ed1)); + Dmsg2(001, "Freed mem_pool count=%d size=%s\n", count, edit_uint64_with_commas(bytes, ed1)); + if (debug_level >= 1) { + print_memory_pool_stats(); + } V(mutex); } -- 2.39.5