]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - opcodes/rl78-decode.opc
opcodes error messages
[thirdparty/binutils-gdb.git] / opcodes / rl78-decode.opc
index a6368ad74e3b516836e8b586b4ce76352039246d..49e9e69d9581b1d9be1db1d4ce1f7fc092503165 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "ansidecl.h"
+#include "opintl.h"
 #include "opcode/rl78.h"
 
 static int trace = 0;
@@ -100,7 +101,10 @@ immediate (int bytes, int sign_extend, LocalData * ld)
        i -= 0x1000000;
       break;
     default:
-      fprintf (stderr, "Programmer error: immediate() called with invalid byte count %d\n", bytes);
+      opcodes_error_handler
+       /* xgettext:c-format */
+       (_("internal error: immediate() called with invalid byte count %d"),
+          bytes);
       abort();
     }
   return i;