public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Tidy objdump printing of section size
@ 2022-11-24  7:32 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-11-24  7:32 UTC (permalink / raw)
  To: binutils

	* objdump.c (load_specific_debug_section): Use PRIx64 format.

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;
     }
 

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-24  7:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-24  7:32 Tidy objdump printing of section size Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).