]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Mask out "MEM" debug messages when -memchk wasn't used
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 13:18:11 +0000 (15:18 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 13:18:11 +0000 (15:18 +0200)
util.c

diff --git a/util.c b/util.c
index cab675e2566fae1cbbddd76515c147ba6d1a67eb..04560602859715cf41e7e8030380069fad08ea9d 100644 (file)
--- 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);