X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fv850-dis.c;h=6c2f995ba4df1ce5a638fa8fc42208cdc252d863;hb=c55fe0967e9ec38c1e9d9d3ffc4db30a49323302;hp=1bfc7b4c97ff46cd751bb44fdd2d91d46c9a3e3c;hpb=47b0e7ad8c60ea4b45b22ad5cb376f068991bc88;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/v850-dis.c b/opcodes/v850-dis.c index 1bfc7b4c97..6c2f995ba4 100644 --- a/opcodes/v850-dis.c +++ b/opcodes/v850-dis.c @@ -187,7 +187,7 @@ disassemble (bfd_vma memaddr, info->fprintf_func (info->stream, "ep"); break; default: - info->fprintf_func (info->stream, "%d", value); + info->fprintf_func (info->stream, "%ld", value); break; case V850_OPERAND_DISP: { @@ -314,7 +314,7 @@ disassemble (bfd_vma memaddr, if ((insn & 0x001fffc0) == 0x00130780) value <<= 16; - info->fprintf_func (info->stream, "0x%x", value); + info->fprintf_func (info->stream, "0x%lx", value); } else info->memory_error_func (status, memaddr + bytes_read, @@ -355,9 +355,9 @@ disassemble (bfd_vma memaddr, if (!match) { if (short_op) - info->fprintf_func (info->stream, ".short\t0x%04x", insn); + info->fprintf_func (info->stream, ".short\t0x%04lx", insn); else - info->fprintf_func (info->stream, ".long\t0x%08x", insn); + info->fprintf_func (info->stream, ".long\t0x%08lx", insn); } return bytes_read;