improve formatting so section alignments are easier to debug

This commit is contained in:
bunnie 2022-10-20 16:14:56 +08:00
parent 3fb3641439
commit 86d2437f03

View file

@ -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
)
}
}