mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
nicer output for lost blocks in memory info
This commit is contained in:
parent
700860a435
commit
812794200c
1 changed files with 7 additions and 7 deletions
14
util.c
14
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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue