diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-08-16 11:17:15 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-08-16 11:17:15 -0400 |
commit | 076fe0152b23f51b6493064ba7bb5ed965aee311 (patch) | |
tree | d20280bac3d34ace2134af5911d00d8cd6df1202 /elf | |
parent | f3ed22607e8bf724b697c16876dbb76bb2418db6 (diff) | |
download | glibc-076fe0152b23f51b6493064ba7bb5ed965aee311.tar glibc-076fe0152b23f51b6493064ba7bb5ed965aee311.tar.gz glibc-076fe0152b23f51b6493064ba7bb5ed965aee311.tar.bz2 glibc-076fe0152b23f51b6493064ba7bb5ed965aee311.zip |
Fix printing of scope number
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-open.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c index c3e5fbaea7..7c67f746f3 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -641,14 +641,9 @@ _dl_show_scope (struct link_map *l) if (l->l_scope != NULL) for (int scope_cnt = 0; l->l_scope[scope_cnt] != NULL; ++scope_cnt) { - char numbuf[2]; - unsigned int cnt; + _dl_debug_printf (" scope %lu:", scope_cnt); - numbuf[0] = '0' + scope_cnt; - numbuf[1] = '\0'; - _dl_debug_printf (" scope %s:", numbuf); - - for (cnt = 0; cnt < l->l_scope[scope_cnt]->r_nlist; ++cnt) + for (unsigned int cnt = 0; cnt < l->l_scope[scope_cnt]->r_nlist; ++cnt) if (*l->l_scope[scope_cnt]->r_list[cnt]->l_name) _dl_debug_printf_c (" %s", l->l_scope[scope_cnt]->r_list[cnt]->l_name); |