From: Kern Sibbald Date: Sun, 23 Jan 2011 11:02:04 +0000 (+0100) Subject: Add pool memory debug output X-Git-Tag: Release-7.0.0~1215 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=897707854a8240d026e933215009f931bb9c5762;p=bacula%2Fbacula Add pool memory debug output --- 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); }