]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 72804bd9aedd917f328b67b759c6499d15e7aba6..fc576fc192a16e4dd5bde106681df7940e42890d 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 4ff8ebbd93e71ff37ca8cd3a67ca04b73b9b3718..2954e7427a23605e957cdf20f9e184544c4b172a 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.