summaryrefslogtreecommitdiffstats
path: root/src/elflint.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 /src/elflint.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 'src/elflint.c')
-rw-r--r--src/elflint.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/elflint.c b/src/elflint.c
index 0d5f34d4..c1f0be5e 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -2686,7 +2686,7 @@ section [%2d] '%s': section group with only one member\n"),
if (val > shnum)
ERROR (gettext ("\
-section [%2d] '%s': section index %Zu out of range\n"),
+section [%2d] '%s': section index %zu out of range\n"),
idx, section_name (ebl, idx), cnt / elsize);
else
{
@@ -2708,7 +2708,7 @@ section [%2d] '%s': section group contains another group [%2d] '%s'\n"),
if ((refshdr->sh_flags & SHF_GROUP) == 0)
ERROR (gettext ("\
-section [%2d] '%s': element %Zu references section [%2d] '%s' without SHF_GROUP flag set\n"),
+section [%2d] '%s': element %zu references section [%2d] '%s' without SHF_GROUP flag set\n"),
idx, section_name (ebl, idx), cnt / elsize,
val, section_name (ebl, val));
}
@@ -4246,7 +4246,7 @@ phdr[%d]: unknown core file note type %" PRIu32 " at offset %" PRIu64 "\n"),
else
ERROR (gettext ("\
section [%2d] '%s': unknown core file note type %" PRIu32
- " at offset %Zu\n"),
+ " at offset %zu\n"),
shndx, section_name (ebl, shndx),
(uint32_t) nhdr.n_type, offset);
}
@@ -4268,12 +4268,12 @@ section [%2d] '%s': unknown core file note type %" PRIu32
default:
if (shndx == 0)
ERROR (gettext ("\
-phdr[%d]: unknown object file note type %" PRIu32 " at offset %Zu\n"),
+phdr[%d]: unknown object file note type %" PRIu32 " at offset %zu\n"),
phndx, (uint32_t) nhdr.n_type, offset);
else
ERROR (gettext ("\
section [%2d] '%s': unknown object file note type %" PRIu32
- " at offset %Zu\n"),
+ " at offset %zu\n"),
shndx, section_name (ebl, shndx),
(uint32_t) nhdr.n_type, offset);
}