unwind: introduce own debug macro
* unwind.c (DPRINTF): New macro, to be utilized in debugging cache
management code.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
diff --git a/unwind.c b/unwind.c
index 3aa13d2..e4beb28 100644
--- a/unwind.c
+++ b/unwind.c
@@ -28,6 +28,8 @@
#include <limits.h>
#include <libunwind-ptrace.h>
+#define DPRINTF(F, A, ...) if (debug_flag) fprintf(stderr, " [unwind(" A ")] " F "\n", __VA_ARGS__)
+
/*
* Кeep a sorted array of cache entries,
* so that we can binary search through it.