about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-misc.c6
-rw-r--r--elf/rtld.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/elf/dl-misc.c b/elf/dl-misc.c
index f4b73989af..f1abfb7f29 100644
--- a/elf/dl-misc.c
+++ b/elf/dl-misc.c
@@ -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");
 	    }
diff --git a/elf/rtld.c b/elf/rtld.c
index c46f2d1a13..f17d71dc7f 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -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