projects
/
platform
/
upstream
/
strace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d534da
)
unwind: introduce own debug macro
author
Masatake YAMATO
<yamato@redhat.com>
Wed, 16 Apr 2014 06:33:05 +0000
(15:33 +0900)
committer
Dmitry V. Levin
<ldv@altlinux.org>
Fri, 30 May 2014 22:54:07 +0000
(22:54 +0000)
* unwind.c (DPRINTF): New macro, to be utilized in debugging cache
management code.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
unwind.c
patch
|
blob
|
history
diff --git
a/unwind.c
b/unwind.c
index 3aa13d2567b98c592610f399d65d92767bafea80..e4beb2854781c6e3a06cac899e0ce7283059fdaf 100644
(file)
--- 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.