diff options
Diffstat (limited to 'src/unityfs.rs')
-rw-r--r-- | src/unityfs.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unityfs.rs b/src/unityfs.rs index 677a135..d3eb81f 100644 --- a/src/unityfs.rs +++ b/src/unityfs.rs @@ -1,5 +1,6 @@ use crate::helper::{AlignExt, ReadExt}; use anyhow::{Result, anyhow, bail}; +use humansize::DECIMAL; use log::{debug, info, trace}; use std::io::{Cursor, Error, ErrorKind, Read, Seek, SeekFrom}; @@ -115,7 +116,10 @@ impl<T: Read + Seek> UnityFS<T> { let size = blockindex.read_u64_be()?; let status = blockindex.read_u32_be()?; let name = blockindex.read_cstr()?; - info!("found node {name:?} (offset={offset}, size={size}, status={status})"); + info!( + "found node {name:?} (size={}, status={status})", + humansize::format_size(size, DECIMAL) + ); nodes.push(NodeInfo { offset, size, |