From: Doug Evans Date: Sun, 22 Nov 2009 22:29:28 +0000 (+0000) Subject: * cgen-trace.h (trace_extract): Add cast to fix warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e94d449d6fedb4f51f5751eceb6a41a51340d408;p=binutils-gdb.git * cgen-trace.h (trace_extract): Add cast to fix warning. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 7b10e9536d5..b5ef6a99005 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2009-11-22 Doug Evans + + * cgen-trace.h (trace_extract): Add cast to fix warning. + 2009-11-05 Doug Evans * cgen-mem.h (DECLARE_GETT): Don't inline. diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index 9b0367f0d47..b984ea8b020 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -192,7 +192,7 @@ trace_extract (SIM_CPU *cpu, IADDR pc, char *name, ...) va_start (args, name); trace_printf (CPU_STATE (cpu), cpu, "Extract: 0x%.*lx: %s ", - SIZE_PC, pc, name); + SIZE_PC, (unsigned long) pc, name); do { int type,ival;