Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH/committed] sim: rx: cast bfd_vma when printing
@ 2021-05-01 20:29 Mike Frysinger via Gdb-patches
  2021-05-03 16:20 ` Christian Biesinger via Gdb-patches
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Frysinger via Gdb-patches @ 2021-05-01 20:29 UTC (permalink / raw)
  To: gdb-patches

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 7541c9d7141b..633ed86780c7 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 a8a473346c67..b4523e12ac75 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.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-04 12:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-01 20:29 [PATCH/committed] sim: rx: cast bfd_vma when printing Mike Frysinger via Gdb-patches
2021-05-03 16:20 ` Christian Biesinger via Gdb-patches
2021-05-03 20:57   ` Mike Frysinger via Gdb-patches
2021-05-03 21:47     ` Christian Biesinger via Gdb-patches
2021-05-04  0:47       ` Mike Frysinger via Gdb-patches
2021-05-04  2:54         ` Mike Frysinger via Gdb-patches
2021-05-04 12:17           ` [PATCH/committed] sim: clean up bfd_vma printing Mike Frysinger via Gdb-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox