From e9de9b493a68831b6361fc7d019bb401d5a11215 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 22 Jan 2009 13:05:40 -0800 Subject: [PATCH] Use t instead of j formats for ptrdiff_t --- src/ChangeLog | 5 +++++ src/readelf.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 93ad600a0..fcf440be6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-01-22 Roland McGrath + + * readelf.c (print_debug_frame_section): Use t instead of j formats + for ptrdiff_t OFFSET. + 2009-01-21 Ulrich Drepper * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section diff --git a/src/readelf.c b/src/readelf.c index e01653666..b42c393a7 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -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, -- 2.47.3