Kaveh Ghazi's printf format attribute checking patch.
[deliverable/binutils-gdb.git] / opcodes / m10300-dis.c
index 158490edea325cfbbd6add0761a09208aaac0bf8..3b0617b06172962f8f57b1743bc471b420268389 100644 (file)
@@ -449,7 +449,7 @@ disassemble (bfd_vma memaddr,
                  value = ((insn >> (operand->shift + extra_shift))
                           & ((1 << operand->bits) - 1));
                  if (value == 0)
-                   (*info->fprintf_func) (info->stream, "sp", value);
+                   (*info->fprintf_func) (info->stream, "sp");
                  else
                    (*info->fprintf_func) (info->stream, "xr%d", (int) value);
                }
@@ -577,7 +577,7 @@ disassemble (bfd_vma memaddr,
 
   if (!match)
     /* xgettext:c-format */
-    (*info->fprintf_func) (info->stream, _("unknown\t0x%04x"), insn);
+    (*info->fprintf_func) (info->stream, _("unknown\t0x%04lx"), insn);
 }
 
 int
This page took 0.026445 seconds and 4 git commands to generate.