git » libfiu » commit 0a45ab3

preload/posix: Show more information in the debug prints

author Alberto Bertogli
2009-10-15 02:12:39 UTC
committer Alberto Bertogli
2009-10-15 02:12:39 UTC
parent bb5976f03abff7ee3e163fb2444dc3ed1faf4d39

preload/posix: Show more information in the debug prints

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

preload/posix/codegen.h +5 -3

diff --git a/preload/posix/codegen.h b/preload/posix/codegen.h
index 5dddf35..c90a951 100644
--- a/preload/posix/codegen.h
+++ b/preload/posix/codegen.h
@@ -37,14 +37,16 @@ extern int __thread _fiu_called;
 	#define rec_inc()				\
 		do {					\
 			_fiu_called++;			\
-			fprintf(stderr, "I: %d\n", _fiu_called); \
+			fprintf(stderr, "I: %d %s\n", _fiu_called, \
+					__FUNCTION__);	\
 			fflush(stderr);			\
 		} while (0)
 
 	#define rec_dec()				\
 		do {					\
 			_fiu_called--;			\
-			fprintf(stderr, "D: %d\n", _fiu_called); \
+			fprintf(stderr, "D: %d %s\n", _fiu_called, \
+					__FUNCTION__);	\
 			fflush(stderr);			\
 		} while (0)
 
@@ -53,7 +55,7 @@ extern int __thread _fiu_called;
 			if (_fiu_called)		\
 				fprintf(stderr, "\t");	\
 			_fiu_called++;			\
-			fprintf(stderr, "%5.5d ", getpid()); \
+			fprintf(stderr, "%6.6d ", getpid()); \
 			fprintf(stderr, "%s(): ", __FUNCTION__ ); \
 			fprintf(stderr, __VA_ARGS__);	\
 			fflush(stderr);			\