From e30db7381caa0eb14435fa4d3728484d7f01033c Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 9 Apr 2000 14:15:43 +0000 Subject: [PATCH] Fix printf botch. --- sim/mips/ChangeLog | 4 ++++ sim/mips/interp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index af9985b1ec3..799159cc3e6 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 10 00:07:09 2000 Andrew Cagney + + * interp.c (decode_coproc): Output long using %lx and not %s. + 2000-03-21 Frank Ch. Eigler * interp.c (sim_open): Sort & extend dummy memory regions for diff --git a/sim/mips/interp.c b/sim/mips/interp.c index eac81b364e1..a75d4ab3f74 100644 --- a/sim/mips/interp.c +++ b/sim/mips/interp.c @@ -3231,8 +3231,8 @@ decode_coproc (SIM_DESC sd, /* 30 = ErrorEPC R4000 VR4100 VR4300 */ if (STATE_VERBOSE_P(SD)) sim_io_eprintf (SD, - "Warning: PC 0x%s:interp.c decode_coproc DEADC0DE\n", - (unsigned)cia); + "Warning: PC 0x%lx:interp.c decode_coproc DEADC0DE\n", + (unsigned long)cia); GPR[rt] = 0xDEADC0DE; /* CPR[0,rd] */ /* CPR[0,rd] = GPR[rt]; */ default: -- 2.30.2