summaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-11-22 22:29:28 +0000
committerDoug Evans <dje@google.com>2009-11-22 22:29:28 +0000
commit1a18891df248e65a1c179e1f67055fd692e4d94d (patch)
treec7e83cb19c371f66310bc8a86ac56090d5e4b318 /sim/common
parent477b2d9c82a58c5c179d489f1cca2bb28bbd5b88 (diff)
downloadgdb-1a18891df248e65a1c179e1f67055fd692e4d94d.tar.gz
* cgen-trace.h (trace_extract): Add cast to fix warning.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/cgen-trace.c2
2 files changed, 5 insertions, 1 deletions
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 <dje@sebabeach.org>
+
+ * cgen-trace.h (trace_extract): Add cast to fix warning.
+
2009-11-05 Doug Evans <dje@sebabeach.org>
* 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;