summaryrefslogtreecommitdiff
path: root/ndisasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-04-30 21:04:18 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-04-30 21:04:18 +0000
commit090a2185739075cbfe4d98437343670ae1a74962 (patch)
tree36575b9e44ccc0f456752f98e7c6395281bfe066 /ndisasm.c
parentcaa82a1e66f6b9517ba2199cdc4297bd7be8eaa2 (diff)
downloadnasm-090a2185739075cbfe4d98437343670ae1a74962.tar.gz
nasm-090a2185739075cbfe4d98437343670ae1a74962.tar.bz2
nasm-090a2185739075cbfe4d98437343670ae1a74962.zip
NASM 0.98.17
Diffstat (limited to 'ndisasm.c')
-rw-r--r--ndisasm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ndisasm.c b/ndisasm.c
index 227dde7..71d07df 100644
--- a/ndisasm.c
+++ b/ndisasm.c
@@ -235,7 +235,7 @@ int main(int argc, char **argv)
p += lenread;
if ((unsigned long)offset == nextsync) {
if (synclen) {
- printf("%08lX skipping 0x%lX bytes\n", offset, synclen);
+ fprintf(stdout, "%08lX skipping 0x%lX bytes\n", offset, synclen);
offset += synclen;
skip (synclen, fp);
}
@@ -271,26 +271,26 @@ static void output_ins (unsigned long offset, unsigned char *data,
int datalen, char *insn)
{
int bytes;
- printf("%08lX ", offset);
+ fprintf(stdout, "%08lX ", offset);
bytes = 0;
while (datalen > 0 && bytes < BPL) {
- printf("%02X", *data++);
+ fprintf(stdout, "%02X", *data++);
bytes++;
datalen--;
}
- printf("%*s%s\n", (BPL+1-bytes)*2, "", insn);
+ fprintf(stdout, "%*s%s\n", (BPL+1-bytes)*2, "", insn);
while (datalen > 0) {
- printf(" -");
+ fprintf(stdout, " -");
bytes = 0;
while (datalen > 0 && bytes < BPL) {
- printf("%02X", *data++);
+ fprintf(stdout, "%02X", *data++);
bytes++;
datalen--;
}
- printf("\n");
+ fprintf(stdout, "\n");
}
}