From: Kern Sibbald Date: Sun, 23 Jan 2011 11:02:04 +0000 (+0100) Subject: Add pool memory debug output X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f79089288140b62b4f28e87ddfd17d35bd31dc0;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); }