forked from Imagelibrary/binutils-gdb
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user