X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Ftic4x-dis.c;h=ec56cb3c5b33227945b9061c93ca0246fc4210f4;hb=51afcce0d32788512d303eb321b332492e8691d1;hp=c0f6152beffb2d042cfa3d7ddeefcaa6442ece06;hpb=47b0e7ad8c60ea4b45b22ad5cb376f068991bc88;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/tic4x-dis.c b/opcodes/tic4x-dis.c index c0f6152bef..ec56cb3c5b 100644 --- a/opcodes/tic4x-dis.c +++ b/opcodes/tic4x-dis.c @@ -222,12 +222,12 @@ tic4x_print_immed (struct disassemble_info *info, { case IMMED_SINT: case IMMED_INT: - (*info->fprintf_func) (info->stream, "%d", (long) arg); + (*info->fprintf_func) (info->stream, "%ld", (long) arg); break; case IMMED_SUINT: case IMMED_UINT: - (*info->fprintf_func) (info->stream, "%u", arg); + (*info->fprintf_func) (info->stream, "%lu", arg); break; case IMMED_SFLOAT: @@ -724,7 +724,7 @@ tic4x_disassemble (unsigned long pc, && tic4x_print_op (NULL, instruction, p, pc)) tic4x_print_op (info, instruction, p, pc); else - (*info->fprintf_func) (info->stream, "%08x", instruction); + (*info->fprintf_func) (info->stream, "%08lx", instruction); } else { @@ -736,7 +736,7 @@ tic4x_disassemble (unsigned long pc, break; } if (i == TIC4X_SPESOP_SIZE) - (*info->fprintf_func) (info->stream, "%08x", instruction); + (*info->fprintf_func) (info->stream, "%08lx", instruction); } /* Return size of insn in words. */