aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-30 21:54:18 +0100
committervan Hauser <vh@thc.org>2020-11-30 21:54:18 +0100
commite769102491a4a5aa90afe57cce48211338133d3f (patch)
tree3f5a3003ae4ca5451edd023ab116be3ce91f76d9 /include
parent1b75cc9f742ca6f5c95788269c66c346036b7233 (diff)
downloadAFLplusplus-e769102491a4a5aa90afe57cce48211338133d3f.tar.gz
more DEBUGF
Diffstat (limited to 'include')
-rw-r--r--include/debug.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/debug.h b/include/debug.h
index e6d3c3fc..5512023c 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -270,6 +270,16 @@
\
} while (0)
+/* Show a prefixed debug output. */
+
+#define DEBUGF(x...) \
+ do { \
+ \
+ SAYF(cMGN "[D] " cBRI "DEBUG: " cRST x); \
+ SAYF(cRST ""); \
+ \
+ } while (0)
+
/* Error-checking versions of read() and write() that call RPFATAL() as
appropriate. */