mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
Mask out "MEM" debug messages when -memchk wasn't used
This commit is contained in:
parent
9284c41d0a
commit
6cbc0a84d7
1 changed files with 3 additions and 0 deletions
3
util.c
3
util.c
|
@ -198,6 +198,9 @@ void util_debug(const char *area, const char *ms, ...) {
|
|||
if (!opts_debug)
|
||||
return;
|
||||
|
||||
if (!strcmp(area, "MEM") && !opts_memchk)
|
||||
return;
|
||||
|
||||
va_start(va, ms);
|
||||
fprintf (stdout, "DEBUG: ");
|
||||
fputc ('[', stdout);
|
||||
|
|
Loading…
Reference in a new issue