From 86d2437f0386784de0917714016efc95ac9dc76e Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 20 Oct 2022 16:14:56 +0800 Subject: [PATCH] improve formatting so section alignments are easier to debug --- tools/src/elf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/src/elf.rs b/tools/src/elf.rs index 0deb13178..8c4a88b53 100644 --- a/tools/src/elf.rs +++ b/tools/src/elf.rs @@ -55,8 +55,8 @@ impl fmt::Display for MiniElfSection { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!( f, - "Section {}: {} bytes loading @ {:08x} flags: {:?}", - self.name, self.size, self.virt, self.flags + "Section {:13} {:6} bytes loading into {:08x}..{:08x} flags: {:?}", + self.name, self.size, self.virt, self.virt + self.size, self.flags ) } }