]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix formatting string in readelf
authorPetr Machata <pmachata@redhat.com>
Wed, 1 Aug 2012 19:43:58 +0000 (21:43 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 7 Aug 2012 12:37:32 +0000 (14:37 +0200)
This caused failures of 32-bit builds.

Signed-off-by: Petr Machata <pmachata@redhat.com>
src/readelf.c

index 3a27f8f065ee5814dfeb7ba7d299b7e8502062fc..9aaf4ece66e84da9943c6973dbafe223b150dc5e 100644 (file)
@@ -6819,7 +6819,7 @@ print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)),
 
   while (readp < readendp)
     {
-      printf (gettext (" Offset:             0x%" PRIx64 "\n"),
+      printf (gettext (" Offset:             0x%zx\n"),
              readp - (const unsigned char *) data->d_buf);
 
       // Header, 2 byte version, 1 byte flag, optional .debug_line offset,