diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-03-05 16:42:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-03-05 16:42:56 +0000 |
commit | b5efde2fd3c061e546b0012e7cf6d6f8e74c6960 (patch) | |
tree | 7b5c70f3a65caa2d32d0d89a59508fae3c8bb50c /sysdeps/generic | |
parent | ea278354429c511389edab51dcb588343652601d (diff) | |
download | glibc-b5efde2fd3c061e546b0012e7cf6d6f8e74c6960.tar.gz glibc-b5efde2fd3c061e546b0012e7cf6d6f8e74c6960.tar.xz glibc-b5efde2fd3c061e546b0012e7cf6d6f8e74c6960.zip |
Testsuite for owrdexp.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/dl-cache.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/generic/dl-cache.c b/sysdeps/generic/dl-cache.c index 8eb18b79cc..43a987a1fd 100644 --- a/sysdeps/generic/dl-cache.c +++ b/sysdeps/generic/dl-cache.c @@ -55,6 +55,10 @@ _dl_load_cache_lookup (const char *name) unsigned int i; const char *best; + /* Print a message if the loading of libs is traced. */ + if (_dl_debug_libs) + _dl_sysdep_message ("\t search cache=", LD_SO_CACHE, "\n", NULL); + if (cache == NULL) { /* Read the contents of the file. */ @@ -99,5 +103,10 @@ _dl_load_cache_lookup (const char *name) break; } } + + /* Print our result if wanted. */ + if (_dl_debug_libs && best != NULL) + _dl_sysdep_message ("\t trying file=", best, "\n", NULL); + return best; } |