From bcf9f0184d616b059b84643bb4296f713a2070e7 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Mon, 20 Sep 2010 22:58:40 +0200 Subject: [PATCH] assembler: Fix debug output Signed-off-by: Michael Buesch --- assembler/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assembler/main.c b/assembler/main.c index 5981a42..8abe03c 100644 --- a/assembler/main.c +++ b/assembler/main.c @@ -1104,7 +1104,7 @@ static void emit_code(struct assembler_context *ctx) exit(1); } if (IS_VERBOSE_DEBUG) - fprintf(stderr, "\nCode:\n"); + printf("\nCode:\n"); list_for_each_entry(c, &ctx->output, list) { switch (c->type) { @@ -1152,7 +1152,7 @@ static void emit_code(struct assembler_context *ctx) switch (c->type) { case OUT_INSN: if (IS_VERBOSE_DEBUG) { - fprintf(stderr, "%03X %03X,%03X,%03X\n", + printf("%03X %04X,%04X,%04X\n", c->opcode, c->operands[0].u.operand, c->operands[1].u.operand, -- 2.31.1