From 2a83fd8f4806f8580d86057dc00bfdb5efcfa1f6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 1 May 2021 16:03:10 -0400 Subject: [PATCH] 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. --- sim/rx/ChangeLog | 4 ++++ sim/rx/load.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.30.2