svn commit: trunk/uClibc/ldso/libdl

vapier at uclibc.org vapier at uclibc.org
Wed Jul 5 19:27:42 UTC 2006


Author: vapier
Date: 2006-07-05 12:27:41 -0700 (Wed, 05 Jul 2006)
New Revision: 15643

Log:
convert #if 0 code to _dl_if_debug_print()

Modified:
   trunk/uClibc/ldso/libdl/libdl.c


Changeset:
Modified: trunk/uClibc/ldso/libdl/libdl.c
===================================================================
--- trunk/uClibc/ldso/libdl/libdl.c	2006-07-05 19:24:48 UTC (rev 15642)
+++ trunk/uClibc/ldso/libdl/libdl.c	2006-07-05 19:27:41 UTC (rev 15643)
@@ -650,18 +650,16 @@
 	 */
 	pelf = NULL;
 
-#if 0
-	fprintf(stderr, "dladdr( %p, %p )\n", __address, __info);
-#endif
+	_dl_if_debug_print("__address: %p  __info: %p\n", __address, __info);
 
 	for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next) {
 		struct elf_resolve *tpnt;
 
 		tpnt = rpnt;
-#if 0
-		fprintf(stderr, "Module \"%s\" at %p\n",
-				tpnt->libname, tpnt->loadaddr);
-#endif
+
+		_dl_if_debug_print("Module \"%s\" at %p\n",
+		                   tpnt->libname, tpnt->loadaddr);
+
 		if (DL_ADDR_IN_LOADADDR((ElfW(Addr)) __address,  tpnt, pelf))
 			pelf = tpnt;
 	}
@@ -695,10 +693,9 @@
 					sn = si;
 					sf = 1;
 				}
-#if 0
-				fprintf(stderr, "Symbol \"%s\" at %p\n",
-						strtab + symtab[si].st_name, symbol_addr);
-#endif
+
+				_dl_if_debug_print("Symbol \"%s\" at %p\n",
+				                   strtab + symtab[si].st_name, symbol_addr);
 			}
 		}
 




More information about the uClibc-cvs mailing list