Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 25 Aug 2001 06:33:07 +0000 (06:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 25 Aug 2001 06:33:07 +0000 (06:33 +0000)
2001-08-24  Ulrich Drepper  <drepper@redhat.com>

* elf/rtld.c (print_statistics): Printf % after percent values.
* elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.

* elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
don't have to compute the hash value and initialize current_value.
Move reference_name variable to where it is needed.
(_dl_lookup_versioned_symbol): Likewise.

ChangeLog
elf/dl-misc.c
elf/rtld.c

index d61be87..d4b9c20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-08-24  Ulrich Drepper  <drepper@redhat.com>
+
+       * elf/rtld.c (print_statistics): Printf % after percent values.
+       * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
+
+       * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
+       don't have to compute the hash value and initialize current_value.
+       Move reference_name variable to where it is needed.
+       (_dl_lookup_versioned_symbol): Likewise.
+
 2001-08-24  Roland McGrath  <roland@frob.com>
 
        * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
index f4b7398..f1abfb7 100644 (file)
@@ -211,6 +211,12 @@ _dl_debug_vdprintf (int fd, int tag_p, const char *fmt, va_list arg)
              ++niov;
              break;
 
+           case '%':
+             iov[niov].iov_base = (void *) fmt;
+             iov[niov].iov_len = 1;
+             ++niov;
+             break;
+
            default:
              assert (! "invalid format specifier");
            }
index c46f2d1..f17d71d 100644 (file)
@@ -1520,7 +1520,7 @@ print_statistics (void)
          *wp++ = *cp++;
        }
       *wp = '\0';
-      _dl_debug_printf ("            time needed for relocation: %s (%s)\n",
+      _dl_debug_printf ("            time needed for relocation: %s (%s%%)\n",
                        buf, pbuf);
     }
 #endif
@@ -1549,7 +1549,7 @@ print_statistics (void)
          *wp++ = *cp++;
        }
       *wp = '\0';
-      _dl_debug_printf ("           time needed to load objects: %s (%s)\n",
+      _dl_debug_printf ("           time needed to load objects: %s (%s%%)\n",
                        buf, pbuf);
     }
 #endif