summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 34bd0d5..923b66f 100644
--- a/src/util.h
+++ b/src/util.h
@@ -34,10 +34,13 @@ extern int verbose;
"ERR:%s(): " fmt "\x1b[0m", \
__func__, ##__VA_ARGS__)
+#ifdef DEBUG
#define pr_debug(fmt, ...) fprintf(stderr, "\x1b[1m\x1b[33m" \
"DEBUG:%s(): " fmt "\x1b[0m", \
__func__, ##__VA_ARGS__);
-
+#else
+#define pr_debug(fmt, ...)
+#endif
#define strerrno() strerror(errno)