Module Name: src
Committed By: christos
Date: Fri Feb 24 17:19:14 UTC 2017
Modified Files:
src/usr.bin/elf2ecoff: elf2ecoff.c
Log Message:
fix printf format
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/elf2ecoff/elf2ecoff.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/elf2ecoff/elf2ecoff.c
diff -u src/usr.bin/elf2ecoff/elf2ecoff.c:1.32 src/usr.bin/elf2ecoff/elf2ecoff.c:1.33
--- src/usr.bin/elf2ecoff/elf2ecoff.c:1.32 Fri Feb 24 08:03:25 2017
+++ src/usr.bin/elf2ecoff/elf2ecoff.c Fri Feb 24 12:19:14 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: elf2ecoff.c,v 1.32 2017/02/24 13:03:25 christos Exp $ */
+/* $NetBSD: elf2ecoff.c,v 1.33 2017/02/24 17:19:14 christos Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone
@@ -247,7 +247,7 @@ usage:
if (debug) {
fprintf(stderr, " combinining PH %zu type %d "
- "flags 0x%x with data, ndata = %d, "
+ "flags %#x with data, ndata = %d, "
"nbss =%d\n", i, ph[i].p_type,
ph[i].p_flags, ndata.len, nbss.len);
}
@@ -260,7 +260,7 @@ usage:
ntxt.len = ph[i].p_filesz;
if (debug) {
fprintf(stderr, " combinining PH %zu type %d "
- "flags 0x%x with text, len = %d\n",
+ "flags %#x with text, len = %d\n",
i, ph[i].p_type, ph[i].p_flags, ntxt.len);
}
combine(&text, &ntxt, 0);
@@ -423,8 +423,8 @@ usage:
if (debug)
- fprintf(stderr, "writing syms at offset 0x%lx\n",
- (uint32_t) ep.f.f_symptr + sizeof(symhdr));
+ fprintf(stderr, "writing syms at offset %#x\n",
+ (uint32_t)(ep.f.f_symptr + sizeof(symhdr)));
/* Copy and translate the symbol table... */
elf_symbol_table_to_ecoff(outfile, infile, &ep,
@@ -590,7 +590,7 @@ write_ecoff_symhdr(int out, struct ecoff
if (debug)
fprintf(stderr,
- "writing symhdr for %d entries at offset 0x%x\n",
+ "writing symhdr for %d entries at offset %#x\n",
nesyms, ep->f.f_symptr);
ep->f.f_nsyms = sizeof(struct ecoff32_symhdr);