sim: rx: cast bfd_vma when printing
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 May 2021 20:03:10 +0000 (16:03 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 1 May 2021 20:29:15 +0000 (16:29 -0400)
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.

sim/rx/ChangeLog
sim/rx/load.c

index 7541c9d7141bfb0715f42ab35526b71fd26a3347..633ed86780c7815df9dd45fa45b61a0bf1431b7a 100644 (file)
@@ -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.
index a8a473346c67854dc546e96176e12e39c8fff165..b4523e12ac75fb5920080968232e4c93c7e979a7 100644 (file)
@@ -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;
        }