diff options
author | Nick Clifton <nickc@redhat.com> | 2023-05-31 10:21:40 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-05-31 10:21:40 +0100 |
commit | a15891aaea006d06066573449efbda353dd2863e (patch) | |
tree | c537cf21b3b28087d7d92f1a8656e9780ca64bc3 /bfd/elfxx-loongarch.c | |
parent | e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d (diff) | |
download | binutils-a15891aaea006d06066573449efbda353dd2863e.zip binutils-a15891aaea006d06066573449efbda353dd2863e.tar.gz binutils-a15891aaea006d06066573449efbda353dd2863e.tar.bz2 |
Fix printf formating issues in elfxx-loongarch64.c
Diffstat (limited to 'bfd/elfxx-loongarch.c')
-rw-r--r-- | bfd/elfxx-loongarch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/elfxx-loongarch.c b/bfd/elfxx-loongarch.c index 9cfbef1..ac644ff 100644 --- a/bfd/elfxx-loongarch.c +++ b/bfd/elfxx-loongarch.c @@ -1669,7 +1669,7 @@ reloc_bits_pcrel20_s2 (bfd *abfd, reloc_howto_type *howto, bfd_vma *fix_val) && (val & ((((bfd_signed_vma) 1) << howto->rightshift) - 1))) { (*_bfd_error_handler) (_("%pB: relocation %s right shift %d error 0x%lx"), - abfd, howto->name, howto->rightshift, val); + abfd, howto->name, howto->rightshift, (long) val); bfd_set_error (bfd_error_bad_value); return false; } @@ -1679,7 +1679,7 @@ reloc_bits_pcrel20_s2 (bfd *abfd, reloc_howto_type *howto, bfd_vma *fix_val) if ((val & ~mask) && ((val & ~mask) != ~mask)) { (*_bfd_error_handler) (_("%pB: relocation %s overflow 0x%lx"), - abfd, howto->name, val); + abfd, howto->name, (long) val); bfd_set_error (bfd_error_bad_value); return false; } @@ -1715,7 +1715,7 @@ reloc_bits_b16 (bfd *abfd, reloc_howto_type *howto, bfd_vma *fix_val) if ((val & ~mask) && ((val & ~mask) != ~mask)) { (*_bfd_error_handler) (_("%pB: relocation %s overflow 0x%lx"), - abfd, howto->name, val); + abfd, howto->name, (long) val); bfd_set_error (bfd_error_bad_value); return false; } @@ -1750,7 +1750,7 @@ reloc_bits_b21 (bfd *abfd, reloc_howto_type *howto, bfd_vma *fix_val) if ((val & ~mask) && ((val & ~mask) != ~mask)) { (*_bfd_error_handler) (_("%pB: relocation %s overflow 0x%lx"), - abfd, howto->name, val); + abfd, howto->name, (long) val); bfd_set_error (bfd_error_bad_value); return false; } @@ -1787,7 +1787,7 @@ reloc_bits_b26 (bfd *abfd, reloc_howto_type *howto, bfd_vma *fix_val) if ((val & ~mask) && ((val & ~mask) != ~mask)) { (*_bfd_error_handler) (_("%pB: relocation %s overflow 0x%lx"), - abfd, howto->name, val); + abfd, howto->name, (long) val); bfd_set_error (bfd_error_bad_value); return false; } |