Mask out "MEM" debug messages when -memchk wasn't used

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-22 15:18:11 +02:00
parent 9284c41d0a
commit 6cbc0a84d7

3
util.c
View file

@ -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);