summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r--lib/libfetch/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h
index 6dad684..84b2e01 100644
--- a/lib/libfetch/common.h
+++ b/lib/libfetch/common.h
@@ -59,7 +59,7 @@ int _fetch_add_entry(struct url_ent **, int *, int *,
#define _url_seterr(n) _fetch_seterr(_url_errlist, n)
#ifndef NDEBUG
-#define DEBUG(x) do x; while (0)
+#define DEBUG(x) do { if (fetchDebug) { x; } } while (0)
#else
#define DEBUG(x) do { } while (0)
#endif
OpenPOWER on IntegriCloud