[1/2] Fix print format warning.

Message ID 1526557776-4962-1-git-send-email-john@darrington.wattle.id.au
State New
Headers show
Series
  • [1/2] Fix print format warning.
Related show

Commit Message

John Darrington May 17, 2018, 11:49 a.m.
* 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(-)

-- 
2.1.4

Patch

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
     {