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>
This commit is contained in:
Masatake YAMATO 2014-04-16 15:33:05 +09:00 committed by Dmitry V. Levin
parent 2d534daaa6
commit 4e121e5bb4

View File

@ -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.