[ltrace-commits] 28/40: dwarf diagnostic output now controlled by -D

Petr Machata pmachata-guest at moszumanska.debian.org
Sun May 11 22:38:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

pmachata-guest pushed a commit to branch master
in repository ltrace.

commit 6164b163dedfcc15e5582675fcba1124ff8420ea
Author: Dima Kogan <dima at secretsauce.net>
Date:   Wed Apr 30 04:17:35 2014 -0700

    dwarf diagnostic output now controlled by -D
---
 dwarf_prototypes.c | 12 ++++--------
 1 file 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);				\

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git



More information about the ltrace-commits mailing list