diff options
author | Chih-Hung Hsieh <[email protected]> | 2015-09-04 10:13:02 -0700 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2015-09-07 15:04:22 +0200 |
commit | 2ec957327cdfae6cee592a52958a9c937ea4b13c (patch) | |
tree | 5a7a5f5c8314ec191aa24693baddd8ef13f7b286 /tests/asm-tst7.c | |
parent | c3f93ad84e653a23a66d8fa4110292ed900ede25 (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/asm-tst7.c')
-rw-r--r-- | tests/asm-tst7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/asm-tst7.c b/tests/asm-tst7.c index a875eb4c..00cb2bfe 100644 --- a/tests/asm-tst7.c +++ b/tests/asm-tst7.c @@ -102,7 +102,7 @@ main (void) scn = elf_getscn (elf, cnt); if (scn == NULL) { - printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); + printf ("cannot get section %zd: %s\n", cnt, elf_errmsg (-1)); result = 1; continue; } @@ -110,7 +110,7 @@ main (void) shdr = gelf_getshdr (scn, &shdr_mem); if (shdr == NULL) { - printf ("cannot get section header for section %Zd: %s\n", + printf ("cannot get section header for section %zd: %s\n", cnt, elf_errmsg (-1)); result = 1; continue; |