aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-open.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-03-07 08:06:09 +0000
committerUlrich Drepper <drepper@redhat.com>2005-03-07 08:06:09 +0000
commit21745dfa6111504005b89210828335d3816ed1f4 (patch)
tree3694e196eab1ac4cf3deb69961ccc579a104e329 /elf/dl-open.c
parentd8505f90bf57bd6fba73242ab463fcbda02582da (diff)
downloadglibc-21745dfa6111504005b89210828335d3816ed1f4.tar
glibc-21745dfa6111504005b89210828335d3816ed1f4.tar.gz
glibc-21745dfa6111504005b89210828335d3816ed1f4.tar.bz2
glibc-21745dfa6111504005b89210828335d3816ed1f4.zip
* elf/dl-close.c (_dl_close): Decrement l_opencount before
printing debug message. * elf/dl-open.c (dl_open_worker): Always print the new opencount in debug messages.
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r--elf/dl-open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index f1fcfbcaaf..0e06ca15d5 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -282,7 +282,7 @@ dl_open_worker (void *a)
/* Let the user know about the opencount. */
if (__builtin_expect (GLRO(dl_debug_mask) & DL_DEBUG_FILES, 0))
_dl_debug_printf ("opening file=%s [%lu]; opencount=%u\n\n",
- new->l_name, new->l_ns, new->l_opencount);
+ new->l_name, new->l_ns, new->l_opencount + 1);
/* If the user requested the object to be in the global namespace
but it is not so far, add it now. */