sim: clean up bfd_vma printing

A lot of this code predates the bfd_vma format define, so we have a
random mix of casts to known types so we can printf the value.  Use
the BFD_VMA_FMT that now exists to simplify and reliability output
across different build configs.
This commit is contained in:
Mike Frysinger
2021-05-03 23:27:16 -04:00
parent 225bda24db
commit 5ee0bc23a6
18 changed files with 79 additions and 42 deletions

View File

@@ -1056,7 +1056,7 @@ bfd_load (const char *fname)
section_size = bfd_section_size (section);
if (sis_verbose)
printf("\nsection %s at 0x%08lx (0x%lx bytes)",
printf("\nsection %s at 0x%08" BFD_VMA_FMT "x (0x%lx bytes)",
section_name, section_address, section_size);
/* Text, data or lit */