From 00d2865b835b1bba05334dcbb20201b6d99534d6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 3 Jul 2000 22:25:33 +0000 Subject: Tidy up formatting. Add -mall-opcodes, -mno-skip-bug, -mno-wrap. --- opcodes/ChangeLog | 6 ++++++ opcodes/avr-dis.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'opcodes') diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ad38600..737d7af 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2000-07-03 Marek Michalkiewicz + + * avr-dis.c (avr_operand): Change _ () to _() around all strings + marked for translation (exception from the usual coding style). + (print_insn_avr): Initialize insn2 to avoid warnings. + 2000-07-03 Kazu Hirata * h8300-dis.c (bfd_h8_disassemble): Improve readability. diff --git a/opcodes/avr-dis.c b/opcodes/avr-dis.c index a774d8b..ee91d7f 100644 --- a/opcodes/avr-dis.c +++ b/opcodes/avr-dis.c @@ -103,7 +103,7 @@ avr_operand (insn, insn2, pc, constraint, buf, comment, regs) case 0: *buf++ = 'Z'; break; case 2: *buf++ = 'Y'; break; case 3: *buf++ = 'X'; break; - default: buf += sprintf (buf, _ (" unknown register ")); break; + default: buf += sprintf (buf, _(" unknown register ")); break; } if (insn & 0x1) *buf++ = '+'; @@ -165,7 +165,7 @@ avr_operand (insn, insn2, pc, constraint, buf, comment, regs) break; case 'n': - sprintf (buf, _ ("Internal disassembler error")); + sprintf (buf, _("Internal disassembler error")); break; case 'K': @@ -205,7 +205,7 @@ avr_operand (insn, insn2, pc, constraint, buf, comment, regs) break; default: - sprintf (buf, _ ("unknown constraint `%c'"), constraint); + sprintf (buf, _("unknown constraint `%c'"), constraint); } } @@ -280,6 +280,7 @@ print_insn_avr(addr, info) op2[0] = 0; comment1[0] = 0; comment2[0] = 0; + insn2 = 0; if (opcode->insn_size > 1) { -- cgit v1.1