[uClibc-cvs] svn commit: trunk/uClibc/ldso/include

vapier at uclibc.org vapier at uclibc.org
Mon Jul 11 22:28:40 UTC 2005


Author: vapier
Date: 2005-07-11 16:28:40 -0600 (Mon, 11 Jul 2005)
New Revision: 10790

Log:
create a new wrapper macro for debug early output

Modified:
   trunk/uClibc/ldso/include/ldso.h


Changeset:
Modified: trunk/uClibc/ldso/include/ldso.h
===================================================================
--- trunk/uClibc/ldso/include/ldso.h	2005-07-11 22:14:53 UTC (rev 10789)
+++ trunk/uClibc/ldso/include/ldso.h	2005-07-11 22:28:40 UTC (rev 10790)
@@ -55,16 +55,22 @@
 extern char *_dl_debug_nofixups;
 extern char *_dl_debug_bindings;
 extern int   _dl_debug_file;
+# define __dl_debug_dprint(fmt, args...) \
+	_dl_dprintf(_dl_debug_file, "%s:%i: " fmt, __FUNCTION__, __LINE__, ## args);
 # define _dl_if_debug_dprint(fmt, args...) \
-	do { \
-	if (_dl_debug) \
-		_dl_dprintf(_dl_debug_file, "%s():%i: " fmt, __FUNCTION__, __LINE__, ## args); \
-	} while (0)
+	do { if (_dl_debug) __dl_debug_dprint(fmt, ## args); } while (0)
 #else
+# define _dl_debug_dprint(fmt, args...)
 # define _dl_if_debug_dprint(fmt, args...)
 # define _dl_debug_file 2
-#endif
+#endif /* __SUPPORT_LD_DEBUG__ */
 
+#ifdef __SUPPORT_LD_DEBUG_EARLY__
+# define _dl_debug_early(fmt, args...) __dl_debug_dprint(fmt, ## args)
+#else
+# define _dl_debug_early(fmt, args...)
+#endif /* __SUPPORT_LD_DEBUG_EARLY__ */
+
 #ifndef NULL
 #define NULL ((void *) 0)
 #endif




More information about the uClibc-cvs mailing list