diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-24 19:31:17 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-24 19:31:17 +0100 |
commit | 2c06cea2337627c08600e99fc0b1c69799526049 (patch) | |
tree | 5779ebb87a54fefa367ffac30e8ad251cb4b8ef3 /src/unityfs.rs | |
parent | 46a49718b09fa5a517d2aa8dceadcc1713ffc51a (diff) | |
download | unity-tools-2c06cea2337627c08600e99fc0b1c69799526049.tar unity-tools-2c06cea2337627c08600e99fc0b1c69799526049.tar.bz2 unity-tools-2c06cea2337627c08600e99fc0b1c69799526049.tar.zst |
json conversion
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, |