mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
Don't use BFD_VMA_FMT in binutils
BFD_VMA_FMT can't be used in format strings that need to be translated, because the translation won't work when the type of bfd_vma differs from the machine used to compile .pot files. We've known about this for a long time, but patches slip through review. So just get rid of BFD_VMA_FMT, instead using the appropriate PRId64, PRIu64, PRIx64 or PRIo64 and SCN variants for scanf. The patch is mostly mechanical, the only thing requiring any thought is casts needed to preserve PRId64 output from bfd_vma values, or to preserve one of the unsigned output formats from bfd_signed_vma values.
This commit is contained in:
@@ -366,8 +366,7 @@ dump_coff_scope (struct coff_scope *p)
|
||||
if (p)
|
||||
{
|
||||
tab (1);
|
||||
printf ("%s %" BFD_VMA_FMT "x ",
|
||||
_("List of blocks "), (bfd_vma) (uintptr_t) p);
|
||||
printf ("%s %p ", _("List of blocks "), p);
|
||||
|
||||
if (p->sec)
|
||||
printf( " %s %x..%x", p->sec->name,p->offset, p->offset + p->size -1);
|
||||
|
||||
Reference in New Issue
Block a user