mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
PR binutils/13135
* arm-dis.c: Add necessary casts for printing integer values. Use %s when printing string values. * hppa-dis.c: Likewise. * m68k-dis.c: Likewise. * microblaze-dis.c: Likewise. * mips-dis.c: Likewise. * ppc-dis.c: Likewise. * sparc-dis.c: Likewise. * dis-asm.h (fprintf_ftype): Add ATTRIBUTE_FPTR_PRINTF_2.
This commit is contained in:
@@ -550,7 +550,7 @@ print_insn_sparc (bfd_vma memaddr, disassemble_info *info)
|
||||
/* Can't do simple format if source and dest are different. */
|
||||
continue;
|
||||
|
||||
(*info->fprintf_func) (stream, opcode->name);
|
||||
(*info->fprintf_func) (stream, "%s", opcode->name);
|
||||
|
||||
{
|
||||
const char *s;
|
||||
@@ -704,7 +704,7 @@ print_insn_sparc (bfd_vma memaddr, disassemble_info *info)
|
||||
break;
|
||||
|
||||
case ')': /* 5 bit unsigned immediate from RS3. */
|
||||
(info->fprintf_func) (stream, "%#x", X_RS3 (insn));
|
||||
(info->fprintf_func) (stream, "%#x", (unsigned int) X_RS3 (insn));
|
||||
break;
|
||||
|
||||
case 'X': /* 5 bit unsigned immediate. */
|
||||
|
||||
Reference in New Issue
Block a user