From 812794200cc1ca6b360135c3ceaf9c17b89c3210 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Tue, 21 Aug 2012 11:45:19 +0200 Subject: [PATCH] nicer output for lost blocks in memory info --- util.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/util.c b/util.c index 5f66b2d..cab675e 100644 --- a/util.c +++ b/util.c @@ -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); - } } /* -- 2.39.2