diff options
author | Dima Kogan <dima@secretsauce.net> | 2014-04-30 04:17:35 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-22 20:38:26 +0900 |
commit | 90655dbc92336b2a5ea1838802abce39e175cd88 (patch) | |
tree | 7ddf7bee87fe62968fc996a150d23a2bfc77903b | |
parent | f27f9a4968c7ac7c7848eb522c263b75fe91f97e (diff) | |
download | ltrace-90655dbc92336b2a5ea1838802abce39e175cd88.tar.gz ltrace-90655dbc92336b2a5ea1838802abce39e175cd88.tar.bz2 ltrace-90655dbc92336b2a5ea1838802abce39e175cd88.zip |
dwarf diagnostic output now controlled by -D
-rw-r--r-- | dwarf_prototypes.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c index ef71f9e..90c1d65 100644 --- a/dwarf_prototypes.c +++ b/dwarf_prototypes.c @@ -24,18 +24,14 @@ #include "library.h" #include "options.h" #include "filter.h" - +#include "debug.h" //#define DUMP_PROTOTYPES -#if 1 #define complain(die, format, ...) \ - fprintf(stderr, "%s() die '%s' @ 0x%lx: " format "\n", \ - __func__, dwarf_diename(die), dwarf_dieoffset(die), \ - ##__VA_ARGS__) -#else -#define complain(die, format, ...) -#endif + debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%lx: " format, \ + __func__, dwarf_diename(die), dwarf_dieoffset(die), \ + ##__VA_ARGS__) #define NEXT_SIBLING(die) \ int res = dwarf_siblingof(die, die); \ |