Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d63c1903
Commit
d63c1903
authored
Sep 29, 1994
by
Karl Heuer
Browse files
(CHECK_SCNHDR, write_segment): Fix format/arg mismatch.
parent
a0f88464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/unexaix.c
src/unexaix.c
+4
-4
No files found.
src/unexaix.c
View file @
d63c1903
...
...
@@ -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: %
l
x 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%
l
x, fileno %d, size 0x%x, wrote 0x%x, errno %d"
,
(
unsigned
long
)
ptr
,
new
,
nwrite
,
ret
,
errno
);
PERROR
(
buf
);
}
i
+=
nwrite
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment