diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-11-01 00:05:15 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-01 00:05:15 -0400 |
commit | 6dc840d69d86b379f0c62c0615b3f4f6d37a8c1f (patch) | |
tree | 2ddb966f16f73bbdaab358ef638be51347d1feb7 /sim/d10v | |
parent | f0bef2e9a73f7df65de5f9b93fbdbc275c5d22e9 (diff) | |
download | fsf-binutils-gdb-6dc840d69d86b379f0c62c0615b3f4f6d37a8c1f.zip fsf-binutils-gdb-6dc840d69d86b379f0c62c0615b3f4f6d37a8c1f.tar.gz fsf-binutils-gdb-6dc840d69d86b379f0c62c0615b3f4f6d37a8c1f.tar.bz2 |
sim: d10v: clean up pointer casts
Use %p to print pointers instead of trying to cast them to longs.
Diffstat (limited to 'sim/d10v')
-rw-r--r-- | sim/d10v/interp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index c48e39a..228ca3e 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -682,11 +682,11 @@ xfer_mem (SIM_DESC sd, { sim_io_printf (sd, - "sim_%s %d bytes: 0x%08" PRIxTA " (%s) -> 0x%08lx (%s) -> 0x%08lx (%s)\n", + "sim_%s %d bytes: 0x%08" PRIxTA " (%s) -> 0x%08lx (%s) -> %p (%s)\n", write_p ? "write" : "read", phys_size, virt, last_from, phys, last_to, - (long) memory, last_segname); + memory, last_segname); } #endif @@ -887,10 +887,10 @@ dmem_addr (SIM_DESC sd, SIM_CPU *cpu, uint16 offset) { sim_io_printf (sd, - "mem: 0x%08x (%s) -> 0x%08lx %d (%s) -> 0x%08lx (%s)\n", + "mem: 0x%08x (%s) -> 0x%08lx %d (%s) -> %p (%s)\n", offset, last_from, phys, phys_size, last_to, - (long) mem, last_segname); + mem, last_segname); } #endif return mem; @@ -911,10 +911,10 @@ imem_addr (SIM_DESC sd, SIM_CPU *cpu, uint32 offset) { sim_io_printf (sd, - "mem: 0x%08x (%s) -> 0x%08lx %d (%s) -> 0x%08lx (%s)\n", + "mem: 0x%08x (%s) -> 0x%08lx %d (%s) -> %p (%s)\n", offset, last_from, phys, phys_size, last_to, - (long) mem, last_segname); + mem, last_segname); } #endif return mem; |