summaryrefslogtreecommitdiff
path: root/src/unexaix.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-09-29 19:22:57 +0000
committerKarl Heuer <kwzh@gnu.org>1994-09-29 19:22:57 +0000
commitd63c1903de7b0e489b170b9f515a78098d334d5f (patch)
tree1638ca2bfd5831bf74681959ac7169331c6ef6c8 /src/unexaix.c
parenta0f884641feb7b647e1a79049ff7e8658a1bd5cd (diff)
downloademacs-d63c1903de7b0e489b170b9f515a78098d334d5f.tar.gz
(CHECK_SCNHDR, write_segment): Fix format/arg mismatch.
Diffstat (limited to 'src/unexaix.c')
-rw-r--r--src/unexaix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unexaix.c b/src/unexaix.c
index 4bfd5e64770..960c730f0f2 100644
--- a/src/unexaix.c
+++ b/src/unexaix.c
@@ -416,8 +416,8 @@ make_hdr (new, a_out, data_start, bss_start, entry_address, a_name, new_name)
#define CHECK_SCNHDR(ptr, name, flags) \
if (strcmp(s->s_name, name) == 0) { \
if (s->s_flags != flags) { \
- fprintf(stderr, "unexec: %x flags where %x expected in %s section.\n", \
- s->s_flags, flags, name); \
+ fprintf(stderr, "unexec: %lx flags where %x expected in %s section.\n", \
+ (unsigned long)s->s_flags, flags, name); \
} \
if (ptr) { \
fprintf(stderr, "unexec: duplicate section header for section %s.\n", \
@@ -616,8 +616,8 @@ write_segment (new, ptr, end)
else if (nwrite != ret)
{
sprintf (buf,
- "unexec write failure: addr 0x%x, fileno %d, size 0x%x, wrote 0x%x, errno %d",
- ptr, new, nwrite, ret, errno);
+ "unexec write failure: addr 0x%lx, fileno %d, size 0x%x, wrote 0x%x, errno %d",
+ (unsigned long)ptr, new, nwrite, ret, errno);
PERROR (buf);
}
i += nwrite;