summaryrefslogtreecommitdiffstats
path: root/tests/sectiondump.c
diff options
context:
space:
mode:
authorChih-Hung Hsieh <[email protected]>2015-09-04 10:13:02 -0700
committerMark Wielaard <[email protected]>2015-09-07 15:04:22 +0200
commit2ec957327cdfae6cee592a52958a9c937ea4b13c (patch)
tree5a7a5f5c8314ec191aa24693baddd8ef13f7b286 /tests/sectiondump.c
parentc3f93ad84e653a23a66d8fa4110292ed900ede25 (diff)
Replace printf %Z length modifier with %z.
%Z is a GNU extension predating the ISO C99 %z modifier supported by libc5 and no longer recommended. Signed-off-by: Chih-Hung Hsieh <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/sectiondump.c')
-rw-r--r--tests/sectiondump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sectiondump.c b/tests/sectiondump.c
index f8659549..3033fedc 100644
--- a/tests/sectiondump.c
+++ b/tests/sectiondump.c
@@ -149,7 +149,7 @@ print_bytes (Elf_Data *data)
{
size_t inner;
- printf ("%*Zx: ", sizeof (size_t) == 4 ? 8 : 16, (size_t) offset + cnt);
+ printf ("%*zx: ", sizeof (size_t) == 4 ? 8 : 16, (size_t) offset + cnt);
for (inner = 0; inner < 16 && cnt + inner < size; ++inner)
printf (" %02hhx", buf[cnt + inner]);
@@ -172,7 +172,7 @@ print_symtab (Elf *elf, Elf_Data *data)
GElf_Sym sym_mem;
GElf_Sym *sym = gelf_getsym (data, cnt, &sym_mem);
- printf ("%5Zu: %*" PRIx64 " %6" PRIx64 " %4d\n",
+ printf ("%5zu: %*" PRIx64 " %6" PRIx64 " %4d\n",
cnt,
class == ELFCLASS32 ? 8 : 16,
sym->st_value,