diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-03 23:27:16 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-04 08:13:45 -0400 |
commit | 5ee0bc23a68fe2a6a7717b31fda1db878b2c9764 (patch) | |
tree | 89d9ac8cad39ef7afdf6dfa1d93a5f06b87a440f /sim/cr16/interp.c | |
parent | 225bda24db9671e2087fda892f94141625836a40 (diff) | |
download | fsf-binutils-gdb-5ee0bc23a68fe2a6a7717b31fda1db878b2c9764.zip fsf-binutils-gdb-5ee0bc23a68fe2a6a7717b31fda1db878b2c9764.tar.gz fsf-binutils-gdb-5ee0bc23a68fe2a6a7717b31fda1db878b2c9764.tar.bz2 |
sim: clean up bfd_vma printing
A lot of this code predates the bfd_vma format define, so we have a
random mix of casts to known types so we can printf the value. Use
the BFD_VMA_FMT that now exists to simplify and reliability output
across different build configs.
Diffstat (limited to 'sim/cr16/interp.c')
-rw-r--r-- | sim/cr16/interp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c index 4615006..8f7fafa 100644 --- a/sim/cr16/interp.c +++ b/sim/cr16/interp.c @@ -672,7 +672,8 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd, start_address = 0x0; #ifdef DEBUG if (cr16_debug) - sim_io_printf (sd, "sim_create_inferior: PC=0x%lx\n", (long) start_address); + sim_io_printf (sd, "sim_create_inferior: PC=0x%" BFD_VMA_FMT "x\n", + start_address); #endif { SIM_CPU *cpu = STATE_CPU (sd, 0); |