aboutsummaryrefslogtreecommitdiff
path: root/sim/common/cgen-trace.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-04 12:48:05 +0930
committerAlan Modra <amodra@gmail.com>2022-08-06 08:03:16 +0930
commit29136be7df3418fc09555eeac5dde6b43106e9be (patch)
tree5ceeb60bbc9ed5226833523f60444c8ed3e6b641 /sim/common/cgen-trace.c
parent99c902690493e35aad16b2083bad34cf79c366bf (diff)
downloadbinutils-29136be7df3418fc09555eeac5dde6b43106e9be.zip
binutils-29136be7df3418fc09555eeac5dde6b43106e9be.tar.gz
binutils-29136be7df3418fc09555eeac5dde6b43106e9be.tar.bz2
Don't use BFD_VMA_FMT in gdb and sim
Like commit b82817674f, this replaces BFD_VMA_FMT "x" in sim/ with PRIx64 and casts to promote bfd_vma to uint64_t. The one file using BFD_VMA_FMT in gdb/ instead now uses hex_string, and a typo in the warning message is fixed.
Diffstat (limited to 'sim/common/cgen-trace.c')
-rw-r--r--sim/common/cgen-trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 3df30c5..e79e93c 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -366,8 +366,8 @@ sim_disasm_perror_memory (int status, bfd_vma memaddr,
/* Actually, address between memaddr and memaddr + len was
out of bounds. */
info->fprintf_func (info->stream,
- "Address 0x%" BFD_VMA_FMT "x is out of bounds.",
- memaddr);
+ "Address 0x%" PRIx64 " is out of bounds.",
+ (uint64_t) memaddr);
}
/* Disassemble using the CGEN opcode table.