1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-09-02 16:01:20 +03:00

Fix printing of scope number

This commit is contained in:
Ulrich Drepper
2011-08-16 11:17:15 -04:00
parent f3ed22607e
commit 076fe0152b
2 changed files with 7 additions and 7 deletions

View File

@@ -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);