projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assembler: Don't print the real binary name in the help message
[b43-tools.git]
/
assembler
/
main.c
diff --git
a/assembler/main.c
b/assembler/main.c
index 5981a42bc5b8a998f34c5aa5b62d4a497aab1eaf..ad180b274bc8ac2520718a83f7590d5a3b23011b 100644
(file)
--- a/
assembler/main.c
+++ b/
assembler/main.c
@@
-429,7
+429,7
@@
static struct code_output * do_assemble_insn(struct assembler_context *ctx,
struct instruction *insn,
unsigned int opcode)
{
struct instruction *insn,
unsigned int opcode)
{
- int i;
+
unsigned
int i;
struct operlist *ol;
int nr_oper = 0;
uint64_t code = 0;
struct operlist *ol;
int nr_oper = 0;
uint64_t code = 0;
@@
-1017,7
+1017,7
@@
static void resolve_labels(struct assembler_context *ctx)
{
struct code_output *c;
int addr;
{
struct code_output *c;
int addr;
- int i;
+
unsigned
int i;
unsigned int current_address;
/* Calculate the absolute addresses for each instruction. */
unsigned int current_address;
/* Calculate the absolute addresses for each instruction. */
@@
-1104,7
+1104,7
@@
static void emit_code(struct assembler_context *ctx)
exit(1);
}
if (IS_VERBOSE_DEBUG)
exit(1);
}
if (IS_VERBOSE_DEBUG)
-
fprintf(stderr,
"\nCode:\n");
+
printf(
"\nCode:\n");
list_for_each_entry(c, &ctx->output, list) {
switch (c->type) {
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) {
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,
c->opcode,
c->operands[0].u.operand,
c->operands[1].u.operand,