assembler: Fix debug output
authorMichael Buesch <mb@bu3sch.de>
Mon, 20 Sep 2010 20:58:40 +0000 (22:58 +0200)
committerMichael Buesch <mb@bu3sch.de>
Mon, 20 Sep 2010 20:58:40 +0000 (22:58 +0200)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
assembler/main.c

index 5981a42bc5b8a998f34c5aa5b62d4a497aab1eaf..8abe03c8fbbe51ac3371b0c9990ce313f6aa6dd3 100644 (file)
@@ -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,