Tidy objdump printing of section size

Message ID Y38eF5ySbTaGA/Gm@squeak.grove.modra.org
State Repeat Merge
Headers
Series Tidy objdump printing of section size |

Checks

Context Check Description
snail/binutils-gdb-check warning Git am fail log

Commit Message

Alan Modra Nov. 24, 2022, 7:32 a.m. UTC
  * objdump.c (load_specific_debug_section): Use PRIx64 format.
  

Patch

diff --git a/binutils/objdump.c b/binutils/objdump.c
index 9b27ce73a87..e8481b2d928 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -4210,9 +4210,9 @@  load_specific_debug_section (enum dwarf_section_display_enum debug,
     {
       section->start = NULL;
       free_debug_section (debug);
-      printf (_("\nSection '%s' has an invalid size: %#llx.\n"),
+      printf (_("\nSection '%s' has an invalid size: %#" PRIx64 ".\n"),
 	      sanitize_string (section->name),
-	      (unsigned long long) section->size);
+	      section->size);
       return false;
     }