aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-01 16:03:10 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-01 16:29:15 -0400
commit2a83fd8f4806f8580d86057dc00bfdb5efcfa1f6 (patch)
tree3ed6302dc3cf5ccee654ff9522b1a5158d7262db /sim
parentbd12755bf409cb931682a13f08e41d87fac84ab5 (diff)
downloadgdb-2a83fd8f4806f8580d86057dc00bfdb5efcfa1f6.zip
gdb-2a83fd8f4806f8580d86057dc00bfdb5efcfa1f6.tar.gz
gdb-2a83fd8f4806f8580d86057dc00bfdb5efcfa1f6.tar.bz2
sim: rx: cast bfd_vma when printing
A bit of a hack, but it's what we've been doing so far when printing bfd_vma's since bfd doesn't provide PRI helper types for us to use.
Diffstat (limited to 'sim')
-rw-r--r--sim/rx/ChangeLog4
-rw-r--r--sim/rx/load.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 7541c9d..633ed86 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-01 Mike Frysinger <vapier@gentoo.org>
+
+ * load.c (rx_load): Cast size to long.
+
2021-04-26 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (NL_TARGET): Delete.
diff --git a/sim/rx/load.c b/sim/rx/load.c
index a8a4733..b4523e1 100644
--- a/sim/rx/load.c
+++ b/sim/rx/load.c
@@ -151,7 +151,7 @@ rx_load (bfd *prog, host_callback *callback)
}
if (bfd_bread (buf, size, prog) != size)
{
- fprintf (stderr, "Failed to read %lx bytes\n", size);
+ fprintf (stderr, "Failed to read %lx bytes\n", (long) size);
continue;
}