From: Michael Buesch Date: Mon, 20 Sep 2010 20:58:40 +0000 (+0200) Subject: assembler: Fix debug output X-Git-Tag: b43-fwcutter-014~23 X-Git-Url: https://jxself.org/git/?p=b43-tools.git;a=commitdiff_plain;h=bcf9f0184d616b059b84643bb4296f713a2070e7 assembler: Fix debug output Signed-off-by: Michael Buesch --- 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,