nicer output for lost blocks in memory info

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-21 11:45:19 +02:00
parent 700860a435
commit 812794200c

14
util.c
View file

@ -87,6 +87,13 @@ void util_meminfo() {
if (!opts_memchk)
return;
for (info = mem_start; info; info = info->next) {
util_debug("MEM", "lost: % 8u (bytes) at %s:%u\n",
info->byte,
info->file,
info->line);
}
util_debug("MEM", "Memory information:\n\
Total allocations: %llu\n\
Total deallocations: %llu\n\
@ -98,13 +105,6 @@ void util_meminfo() {
(mem_ab - mem_db),
(mem_at - mem_dt)
);
for (info = mem_start; info; info = info->next) {
util_debug("MEM", "%u bytes lost at %s:%u\n",
info->byte,
info->file,
info->line);
}
}
/*