This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 1/2] Fix print format warning.
- From: John Darrington <john at darrington dot wattle dot id dot au>
- To: binutils at sourceware dot org
- Cc: John Darrington <john at darrington dot wattle dot id dot au>
- Date: Thu, 17 May 2018 13:49:35 +0200
- Subject: [PATCH 1/2] Fix print format warning.
- References: <d72df15b-5140-08d3-5e93-afb4f0db417f@redhat.com>
* 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