daily update
[deliverable/binutils-gdb.git] / opcodes / bfin-dis.c
index d74fa58e93e6240bd8ec48e7b663becb87bd018b..711fbf85cf42d0ad51dbf9bf6cc8df0ce67331c9 100644 (file)
@@ -1,5 +1,5 @@
 /* Disassemble ADI Blackfin Instructions.
-   Copyright 2005, 2007 Free Software Foundation, Inc.
+   Copyright 2005, 2007, 2008 Free Software Foundation, Inc.
 
    This file is part of libopcodes.
 
@@ -148,7 +148,7 @@ fmtconst (const_forms_t cf, TIword x, bfd_vma pc, disassemble_info * outf)
        }
      else
        {
-         sprintf (buf, "%lx", x);
+         sprintf (buf, "%lx", (unsigned long) x);
          return buf;
        }
     }
@@ -186,7 +186,7 @@ fmtconst (const_forms_t cf, TIword x, bfd_vma pc, disassemble_info * outf)
       if (constant_formats[cf].issigned && x < 0)
        sprintf (buf, "-0x%x", abs (x));
       else
-       sprintf (buf, "0x%lx", x);
+       sprintf (buf, "0x%lx", (unsigned long) x);
     }
 
   return buf;
@@ -481,7 +481,7 @@ static enum machine_registers decode_allregs[] =
 
 /* (arch.pm)arch_disassembler_functions.  */
 #ifndef OUTS
-#define OUTS(p, txt) ((p) ? (((txt)[0]) ? (p->fprintf_func)(p->stream, txt) :0) :0)
+#define OUTS(p, txt) ((p) ? (((txt)[0]) ? (p->fprintf_func)(p->stream, "%s", txt) :0) :0)
 #endif
 
 static void
This page took 0.02352 seconds and 4 git commands to generate.