[PATCH 1/2] Fix print format warning.
John Darrington
john@darrington.wattle.id.au
Thu May 17 11:49:00 GMT 2018
* opcodes/s12z-dis.c (decode_possible_symbol): Use BFD_VMA_FMT to correctly
print an address.
---
opcodes/s12z-dis.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opcodes/s12z-dis.c b/opcodes/s12z-dis.c
index 11f01a1..4512311 100644
--- a/opcodes/s12z-dis.c
+++ b/opcodes/s12z-dis.c
@@ -362,7 +362,7 @@ decode_possible_symbol (bfd_vma addr, struct disassemble_info *info)
{
if (!info->symbol_at_address_func (addr, info))
{
- (*info->fprintf_func) (info->stream, "%d", addr);
+ (*info->fprintf_func) (info->stream, "%" BFD_VMA_FMT "d", addr);
}
else
{
--
2.1.4
More information about the Binutils
mailing list