summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-15 21:41:17 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-15 21:41:17 +0000
commit115a45a7209e380578d36d83016700c5a2d8252e (patch)
tree84a8bf368670ee4f3ba28271cb278af998ffcece /sysdeps
parentb523afaec1eff5b850de8514b301adf27dfc5587 (diff)
downloadglibc-115a45a7209e380578d36d83016700c5a2d8252e.tar.gz
glibc-115a45a7209e380578d36d83016700c5a2d8252e.tar.xz
glibc-115a45a7209e380578d36d83016700c5a2d8252e.zip
Update.
2003-05-15  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
	(DL_NEED_SYSINFO -> NEED_DL_SYSINFO).  If aux value is not known
	print numeric values.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/dl-sysdep.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index a249791ec7..a0e6736b22 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -251,7 +251,7 @@ _dl_show_auxv (void)
 	  [AT_DCACHEBSIZE - 2] =	{ "AT_DCACHEBSIZE:  0x", hex },
 	  [AT_ICACHEBSIZE - 2] =	{ "AT_ICACHEBSIZE:  0x", hex },
 	  [AT_UCACHEBSIZE - 2] =	{ "AT_UCACHEBSIZE:  0x", hex },
-#ifdef DL_NEED_SYSINFO
+#ifdef NEED_DL_SYSINFO
 	  [AT_SYSINFO - 2] =		{ "AT_SYSINFO:      0x", hex },
 	  [AT_SYSINFO_EHDR - 2] =	{ "AT_SYSINFO_EHDR: 0x", hex }
 #endif
@@ -274,8 +274,19 @@ _dl_show_auxv (void)
 			     buf + sizeof buf - 1, 16, 0);
 
 	      _dl_printf ("%s%s\n", auxvars[idx].label, val);
+
+	      continue;
 	    }
 	}
+
+      /* Unknown value: print a generic line.  */
+      char buf2[17];
+      buf[sizeof (buf2) - 1] = '\0';
+      const char *val2 = _itoa ((unsigned long int) av->a_un.a_val,
+				buf2 + sizeof buf2 - 1, 16, 0);
+      const char *val =  _itoa ((unsigned long int) av->a_type,
+				buf + sizeof buf - 1, 16, 0);
+      _dl_printf ("AT_??? (0x%s): 0x%s\n", val, val2);
     }
 }