[binutils-gdb] bfd: use correct format specifier for uint64_t

Matthieu Longo mlongo@sourceware.org
Thu Jan 22 13:00:38 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=82630efb5740d7c8f754862b3287842647853470

commit 82630efb5740d7c8f754862b3287842647853470
Author: Matthieu Longo <matthieu.longo@arm.com>
Date:   Thu Jan 22 12:55:07 2026 +0000

    bfd: use correct format specifier for uint64_t

Diff:
---
 bfd/elf-attrs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c
index 904e097cf97..fe85f4b4712 100644
--- a/bfd/elf-attrs.c
+++ b/bfd/elf-attrs.c
@@ -688,7 +688,7 @@ _bfd_obj_attr_v2_tag_to_string (const struct elf_backend_data *bed,
     = _bfd_obj_attr_v2_find_known_by_tag (bed, subsec_name, tag);
   if (attr_info != NULL)
     return xstrdup (attr_info->tag.name);
-  return xasprintf ("Tag_unknown_%lu", tag);
+  return xasprintf ("Tag_unknown_%"PRIu64, tag);
 }
 
 /* To-string function for the subsection parameter "comprehension".  */


More information about the Binutils-cvs mailing list