From 2c06cea2337627c08600e99fc0b1c69799526049 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 24 Feb 2025 19:31:17 +0100 Subject: json conversion --- src/unityfs.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/unityfs.rs') 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 UnityFS { 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, -- cgit v1.2.3-70-g09d2