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:
parent
225bda24db
commit
5ee0bc23a6
18 changed files with 79 additions and 42 deletions
|
@ -97,8 +97,8 @@ m32c_load (bfd * prog)
|
|||
|
||||
base = bfd_section_lma (s);
|
||||
if (verbose)
|
||||
fprintf (stderr, "[load a=%08x s=%08x %s]\n",
|
||||
(int) base, (int) size, bfd_section_name (s));
|
||||
fprintf (stderr, "[load a=%08" BFD_VMA_FMT "x s=%08x %s]\n",
|
||||
base, (int) size, bfd_section_name (s));
|
||||
buf = (char *) malloc (size);
|
||||
bfd_get_section_contents (prog, s, buf, 0, size);
|
||||
mem_put_blk (base, buf, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue