mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add size on disk reporting
This commit is contained in:
parent
55f1c805a0
commit
c61a521c7d
3 changed files with 18 additions and 0 deletions
|
|
@ -31,6 +31,12 @@ impl fmt::Display for IniE {
|
|||
writeln!(f, " Loaded from {:08x} - {}", load_offset, section)?;
|
||||
load_offset += section.size as u32;
|
||||
}
|
||||
writeln!(
|
||||
f,
|
||||
" Size on disk: {} ({}kiB)",
|
||||
load_offset - self.load_offset,
|
||||
(load_offset - self.load_offset) / 1024
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,12 @@ impl fmt::Display for IniF {
|
|||
writeln!(f, " Loaded from {:08x} - {}", load_offset, section)?;
|
||||
load_offset += section.size as u32;
|
||||
}
|
||||
writeln!(
|
||||
f,
|
||||
" Size on disk: {} ({}kiB)",
|
||||
load_offset - self.load_offset,
|
||||
(load_offset - self.load_offset) / 1024
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,12 @@ impl fmt::Display for IniS {
|
|||
writeln!(f, " Loaded from {:08x} - {}", load_offset, section)?;
|
||||
load_offset += section.size as u32;
|
||||
}
|
||||
writeln!(
|
||||
f,
|
||||
" Size on disk: {} ({}kiB)",
|
||||
load_offset - self.load_offset,
|
||||
(load_offset - self.load_offset) / 1024
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue