Tidy objdump printing of section size
authorAlan Modra <amodra@gmail.com>
Thu, 24 Nov 2022 07:14:13 +0000 (17:44 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 24 Nov 2022 07:15:52 +0000 (17:45 +1030)
* objdump.c (load_specific_debug_section): Use PRIx64 format.

binutils/objdump.c

index 9b27ce73a879edc1eb670d3388a617af4eb3549c..e8481b2d928bdd51bef903f283a91e8ea9448a39 100644 (file)
@@ -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;
     }