]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Use t instead of j formats for ptrdiff_t
authorRoland McGrath <roland@redhat.com>
Thu, 22 Jan 2009 21:05:40 +0000 (13:05 -0800)
committerRoland McGrath <roland@redhat.com>
Thu, 22 Jan 2009 21:05:40 +0000 (13:05 -0800)
src/ChangeLog
src/readelf.c

index 93ad600a06a98c51233f1ca3ca4972d3a900d835..fcf440be681b74e6c5417b41139d94be8b0a22b9 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-22  Roland McGrath  <roland@redhat.com>
+
+       * readelf.c (print_debug_frame_section): Use t instead of j formats
+       for ptrdiff_t OFFSET.
+
 2009-01-21  Ulrich Drepper  <drepper@redhat.com>
 
        * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section
index e0165366606607804650bb3ec2b1b38113b6a897..b42c393a7f0884ecc8b3bc8b3e210c2310c2e16b 100644 (file)
@@ -4611,7 +4611,7 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
 
       if (unlikely (unit_length == 0))
        {
-         printf (gettext ("\n [%6jx] Zero terminator\n"), offset);
+         printf (gettext ("\n [%6tx] Zero terminator\n"), offset);
          continue;
        }
 
@@ -4658,7 +4658,7 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
            // XXX Check overflow
            get_uleb128 (return_address_register, readp);
 
-         printf ("\n [%6jx] CIE length=%" PRIu64 "\n"
+         printf ("\n [%6tx] CIE length=%" PRIu64 "\n"
                  "   CIE_id:                   %" PRIu64 "\n"
                  "   version:                  %u\n"
                  "   augmentation:             \"%s\"\n"
@@ -4796,7 +4796,7 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
          Dwarf_Word address_range
            = read_ubyte_unaligned_inc (ptr_size, dbg, readp);
 
-         printf ("\n [%6jx] FDE length=%" PRIu64 " cie=[%6jx]\n"
+         printf ("\n [%6tx] FDE length=%" PRIu64 " cie=[%6tx]\n"
                  "   CIE_pointer:              %" PRIu64 "\n"
                  "   initial_location:         %#" PRIx64,
                  offset, (uint64_t) unit_length,