From: Wolfgang (Blub) Bumiller Date: Tue, 21 Aug 2012 09:45:19 +0000 (+0200) Subject: nicer output for lost blocks in memory info X-Git-Tag: 0.1-rc1~121 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=812794200cc1ca6b360135c3ceaf9c17b89c3210;p=xonotic%2Fgmqcc.git nicer output for lost blocks in memory info --- 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); - } } /*