This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/2] Fix print format warning.


* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]