]> git.sur5r.net Git - bacula/bacula/commitdiff
Add pool memory debug output
authorKern Sibbald <kern@sibbald.com>
Sun, 23 Jan 2011 11:02:04 +0000 (12:02 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:39:53 +0000 (14:39 +0200)
bacula/src/lib/mem_pool.c

index 2c8f9e4f691659a8c85a59f6f04f7e41729e37af..a371fdd737f746b5dbbc1cef0064bfbdc251d435 100644 (file)
@@ -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);
 
 }