From: Mike Frysinger Date: Sat, 1 May 2021 20:03:10 +0000 (-0400) Subject: sim: rx: cast bfd_vma when printing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a83fd8f4806f8580d86057dc00bfdb5efcfa1f6;p=binutils-gdb.git 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. --- diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index 7541c9d7141..633ed86780c 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,7 @@ +2021-05-01 Mike Frysinger + + * load.c (rx_load): Cast size to long. + 2021-04-26 Mike Frysinger * Makefile.in (NL_TARGET): Delete. diff --git a/sim/rx/load.c b/sim/rx/load.c index a8a473346c6..b4523e12ac7 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; }