projects
/
b43-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b756ecc
)
assembler: Fix debug output
author
Michael Buesch
<mb@bu3sch.de>
Mon, 20 Sep 2010 20:58:40 +0000
(22:58 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/assembler/main.c
b/assembler/main.c
index 5981a42bc5b8a998f34c5aa5b62d4a497aab1eaf..8abe03c8fbbe51ac3371b0c9990ce313f6aa6dd3 100644
(file)
--- 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,%03
X\n",
+
printf("%03X %04X,%04X,%04
X\n",
c->opcode,
c->operands[0].u.operand,
c->operands[1].u.operand,