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.
This commit is contained in:
Mike Frysinger
2021-05-01 16:03:10 -04:00
parent bd12755bf4
commit 2a83fd8f48
2 changed files with 5 additions and 1 deletions

View 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> 2021-04-26 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (NL_TARGET): Delete. * Makefile.in (NL_TARGET): Delete.

View File

@ -151,7 +151,7 @@ rx_load (bfd *prog, host_callback *callback)
} }
if (bfd_bread (buf, size, prog) != size) 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; continue;
} }