about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--elf/cache.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 14e40269da..24642925c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-02-05  Ulrich Drepper  <drepper@redhat.com>
 
+	* elf/cache.c (print_entry): Use PRIx64 instead of Lx in printf
+	string.  Include <inttypes.h> instead of <stdint.h>.
+
 	* localedata/Makefile (tests): Add bug-iconv-trans.
 	Define bug-iconv-trans-ENV.
 	* localedata/bug-iconv-trans.c: New file.
diff --git a/elf/cache.c b/elf/cache.c
index 821dda93e5..d3c7f81c2b 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 1999.
 
@@ -20,12 +20,12 @@
 #include <errno.h>
 #include <error.h>
 #include <dirent.h>
+#include <inttypes.h>
 #include <libintl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <stdint.h>
 #include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
@@ -84,7 +84,7 @@ print_entry (const char *lib, int flag, uint64_t hwcap, const char *key)
       break;
     }
   if (hwcap != 0)
-    printf (", hwcap: 0x%Lx", hwcap);
+    printf (", hwcap: 0x%" PRIx64, hwcap);
   printf (") => %s\n", key);
 }