summaryrefslogtreecommitdiff
path: root/ldso/libdl/libdl.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-07-05 19:27:41 +0000
committerMike Frysinger <vapier@gentoo.org>2006-07-05 19:27:41 +0000
commit84905b3ef09632e2497776320fefef348d4e85d3 (patch)
tree0356cf73727223ab23cafa779f436cbd14fc8e86 /ldso/libdl/libdl.c
parent77c405c0787be57d558d5644d9ac1cb8c33b5e3f (diff)
convert #if 0 code to _dl_if_debug_print()
Diffstat (limited to 'ldso/libdl/libdl.c')
-rw-r--r--ldso/libdl/libdl.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 418a720e0..84102d730 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -650,18 +650,16 @@ int dladdr(const void *__address, Dl_info * __info)
*/
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 @@ int dladdr(const void *__address, Dl_info * __info)
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);
}
}