From 8c284c3344c68cfda9e2a4b4fba171f29a8c05cf Mon Sep 17 00:00:00 2001 From: tzlil Date: Wed, 22 Mar 2023 01:47:48 +0200 Subject: sleep --- src/structs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/structs.rs') diff --git a/src/structs.rs b/src/structs.rs index 673ae35..2a101d9 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -323,7 +323,7 @@ pub struct ElfSectionHeader { impl std::fmt::Display for ElfSectionHeader { fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { formatter.write_fmt(format_args!( - "{: <16} {:0>16x} {:0>8x}\n {:0>16x} {:0>16x} {: <10} {: <5} {: <5} {}", + "{: <16} {:0>16x} {:0>8x}\n {:0>16x} {:0>16x} {: <8} {: <5} {: <5} {}", self.r#type, self.addr, self.offset, @@ -457,14 +457,14 @@ impl std::fmt::Display for ElfSectionFlags { if self.contains(ElfSectionFlags::WRITE) { "W" } else { - "" + " " } }, { if self.contains(ElfSectionFlags::ALLOC) { "A" } else { - "" + " " } }, { @@ -543,7 +543,7 @@ pub struct ElfProgramHeader { impl std::fmt::Display for ElfProgramHeader { fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { formatter.write_fmt(format_args!( - "{: <14} {:#016x} {:#016x} {:#016x}\n {:#016x} {:#016x} {: <10} {:#08x}", + "{: <14} {:#018x} {:#018x} {:#018x}\n {:#018x} {:#018x} {: <6} {:#x}", self.r#type, self.offset, self.vaddr, -- cgit 1.4.1