From 6cbc0a84d7c876a1fbd29b412d516c72d7b661d8 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 22 Aug 2012 15:18:11 +0200 Subject: [PATCH] Mask out "MEM" debug messages when -memchk wasn't used --- util.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2