readelf.c (print_debug_macro_section): Print offset as PRIx64.
authorMark Wielaard <mjw@redhat.com>
Mon, 27 Aug 2012 13:21:58 +0000 (15:21 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 27 Aug 2012 13:21:58 +0000 (15:21 +0200)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/readelf.c

index 72804bd..fc576fc 100644 (file)
@@ -1,5 +1,9 @@
 2012-08-27  Mark Wielaard  <mjw@redhat.com>
 
+       * readelf.c (print_debug_macro_section): Print offset as PRIx64.
+
+2012-08-27  Mark Wielaard  <mjw@redhat.com>
+
        * readelf.c (register_info): Handle loc == NULL.
 
 2012-08-22  Jeff Kenton  <jkenton@tilera.com>
index 4ff8ebb..2954e74 100644 (file)
@@ -6324,8 +6324,8 @@ print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)),
 
   while (readp < readendp)
     {
-      printf (gettext (" Offset:             0x%zx\n"),
-             readp - (const unsigned char *) data->d_buf);
+      printf (gettext (" Offset:             0x%" PRIx64 "\n"),
+             (uint64_t) (readp - (const unsigned char *) data->d_buf));
 
       // Header, 2 byte version, 1 byte flag, optional .debug_line offset,
       // optional vendor extension macro entry table.