Skip to contentSkip to conversation

target-mips: Fix one more format specifier for cpu_fprintf

PATCH New Stefan Weil 1 participant 1 message Apr 2, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-mips: Fix one more format specifier for cpu_fprintf

env->bcond must be printed using TARGET_FMT_ld.

---
 target-mips/translate.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
target-mips/translate.c +3 -1
index 61f8d72..bdd1884 100644
@@ -9638,7 +9638,9 @@ void cpu_dump_state (CPUState *env, FILE *f,
 {
     int i;
 
-    cpu_fprintf(f, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx " LO=0x" TARGET_FMT_lx " ds %04x " TARGET_FMT_lx " %d\n",
+    cpu_fprintf(f, "pc=0x" TARGET_FMT_lx " HI=0x" TARGET_FMT_lx
+                " LO=0x" TARGET_FMT_lx " ds %04x "
+                TARGET_FMT_lx " " TARGET_FMT_ld "\n",
                 env->active_tc.PC, env->active_tc.HI[0], env->active_tc.LO[0],
                 env->hflags, env->btarget, env->bcond);
     for (i = 0; i < 32; i++) {
Signature · 1 line
1.7.0