diff options
| author | Roland McGrath <[email protected]> | 2009-01-22 13:05:40 -0800 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2009-01-22 13:05:40 -0800 |
| commit | e9de9b493a68831b6361fc7d019bb401d5a11215 (patch) | |
| tree | 294c3e5f2581ff546e37759a5332296418fe7544 | |
| parent | e34a3f8de4374cd7f73917d28e3ed6e62d5b21f8 (diff) | |
Use t instead of j formats for ptrdiff_t
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/readelf.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 93ad600a..fcf440be 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-01-22 Roland McGrath <[email protected]> + + * readelf.c (print_debug_frame_section): Use t instead of j formats + for ptrdiff_t OFFSET. + 2009-01-21 Ulrich Drepper <[email protected]> * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section diff --git a/src/readelf.c b/src/readelf.c index e0165366..b42c393a 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, |
