aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2020-10-22 12:00:10 +0100
committerNick Clifton <nickc@redhat.com>2020-10-22 12:00:10 +0100
commit777cd7ab3febadcdad52e3231e960af86e8742da (patch)
tree1108766883d3eaaf421508f8e63222d9643730a8 /sim
parent6b4c676cc7f48f656cf235dd0507c41ab11d7cb5 (diff)
downloadbinutils-777cd7ab3febadcdad52e3231e960af86e8742da.zip
binutils-777cd7ab3febadcdad52e3231e960af86e8742da.tar.gz
binutils-777cd7ab3febadcdad52e3231e960af86e8742da.tar.bz2
Fix printf formatting errors where "0x" is used as a prefix for a decimal number.
bfd * po/es.po: Fix printf format binutils * windmc.c: Fix printf format gas * config/tc-arc.c: Fix printf format opcodes * po/es.po: Fix printf format sim * arm/armos.c: Fix printf format * ppc/emul_netbsd.c: Fix printf format -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
Diffstat (limited to 'sim')
-rw-r--r--sim/ChangeLog5
-rw-r--r--sim/arm/armos.c4
-rw-r--r--sim/ppc/emul_netbsd.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog
index c806bd6..35b1f08 100644
--- a/sim/ChangeLog
+++ b/sim/ChangeLog
@@ -1,3 +1,8 @@
+2020-10-20 Dr. David Alan Gilbert <dgilbert@redhat.com>
+
+ * arm/armos.c (SWIread): Fix printf format.
+ * ppc/emul_netbsd.c (do_sigprocmask): Fix printf format.
+
2020-09-08 David Faust <david.faust@oracle.com>
* bpf/sem-be.c: Regenerate.
diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 76c449b..2ce7051 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -293,8 +293,8 @@ SWIread (ARMul_State * state, ARMword f, ARMword ptr, ARMword len)
{
sim_callback->printf_filtered
(sim_callback,
- "sim: Unable to read 0x%ulx bytes - out of memory\n",
- len);
+ "sim: Unable to read 0x%lx bytes - out of memory\n",
+ (long)len);
return;
}
diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c
index 61ff70d..0bda20e 100644
--- a/sim/ppc/emul_netbsd.c
+++ b/sim/ppc/emul_netbsd.c
@@ -650,7 +650,7 @@ do_sigprocmask(os_emul_data *emul,
#endif
if (WITH_TRACE && ppc_trace[trace_os_emul])
- printf_filtered ("%ld, 0x%ld, 0x%ld", (long)how, (long)set, (long)oset);
+ printf_filtered ("%ld, 0x%lx, 0x%lx", (long)how, (long)set, (long)oset);
emul_write_status(processor, 0, 0);
cpu_registers(processor)->gpr[4] = set;