summaryrefslogtreecommitdiff
path: root/ndisasm.c
diff options
context:
space:
mode:
authorKeith Kanios <spook@dynatos.net>2007-04-14 00:10:59 +0000
committerKeith Kanios <spook@dynatos.net>2007-04-14 00:10:59 +0000
commit93f2e9a5a1c46c3203a9df0933301f42b2b88eb9 (patch)
tree506f66150034666ec42b6da902d721dde96a7f88 /ndisasm.c
parent0899e21289fac4e82776ec3dd0d295a6b8221790 (diff)
downloadnasm-93f2e9a5a1c46c3203a9df0933301f42b2b88eb9.tar.gz
nasm-93f2e9a5a1c46c3203a9df0933301f42b2b88eb9.tar.bz2
nasm-93f2e9a5a1c46c3203a9df0933301f42b2b88eb9.zip
c99 printf/fprintf compliance.
Diffstat (limited to 'ndisasm.c')
-rw-r--r--ndisasm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ndisasm.c b/ndisasm.c
index b531232..d7bbc96 100644
--- a/ndisasm.c
+++ b/ndisasm.c
@@ -254,8 +254,7 @@ int main(int argc, char **argv)
p += lenread;
if ((uint32_t)offset == nextsync) {
if (synclen) {
- fprintf(stdout, "%08lX skipping 0x%lX bytes\n", offset,
- synclen);
+ fprintf(stdout, "%08"PRIX32" skipping 0x%"PRIX32" bytes\n", offset, synclen);
offset += synclen;
skip(synclen, fp);
}
@@ -293,7 +292,7 @@ static void output_ins(uint32_t offset, uint8_t *data,
int datalen, char *insn)
{
int bytes;
- fprintf(stdout, "%08lX ", offset);
+ fprintf(stdout, "%08"PRIX32" ", offset);
bytes = 0;
while (datalen > 0 && bytes < BPL) {