aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/func.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-03 23:27:16 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-04 08:13:45 -0400
commit5ee0bc23a68fe2a6a7717b31fda1db878b2c9764 (patch)
tree89d9ac8cad39ef7afdf6dfa1d93a5f06b87a440f /sim/erc32/func.c
parent225bda24db9671e2087fda892f94141625836a40 (diff)
downloadbinutils-5ee0bc23a68fe2a6a7717b31fda1db878b2c9764.zip
binutils-5ee0bc23a68fe2a6a7717b31fda1db878b2c9764.tar.gz
binutils-5ee0bc23a68fe2a6a7717b31fda1db878b2c9764.tar.bz2
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.
Diffstat (limited to 'sim/erc32/func.c')
-rw-r--r--sim/erc32/func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/erc32/func.c b/sim/erc32/func.c
index c6dfa19..52428e4 100644
--- a/sim/erc32/func.c
+++ b/sim/erc32/func.c
@@ -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 */