From: Wolfgang (Blub) Bumiller Date: Wed, 22 Aug 2012 13:18:11 +0000 (+0200) Subject: Mask out "MEM" debug messages when -memchk wasn't used X-Git-Tag: 0.1-rc1~99 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6cbc0a84d7c876a1fbd29b412d516c72d7b661d8;p=xonotic%2Fgmqcc.git Mask out "MEM" debug messages when -memchk wasn't used --- diff --git a/util.c b/util.c index cab675e..0456060 100644 --- a/util.c +++ b/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);