diff --git a/initfs/tools/src/lib.rs b/initfs/tools/src/lib.rs index 657a8962e7..3ac389bd15 100644 --- a/initfs/tools/src/lib.rs +++ b/initfs/tools/src/lib.rs @@ -8,10 +8,10 @@ use std::os::unix::fs::{FileExt, FileTypeExt, PermissionsExt}; use anyhow::{anyhow, bail, Context, Result}; -use redox_initfs::types::{self as initfs, Offset}; +use redox_initfs::types as initfs; -pub const KIBIBYTE: u64 = 1024; -pub const MEBIBYTE: u64 = KIBIBYTE * 1024; +const KIBIBYTE: u64 = 1024; +const MEBIBYTE: u64 = KIBIBYTE * 1024; #[cfg(debug_assertions)] pub const DEFAULT_MAX_SIZE: u64 = 256 * MEBIBYTE; @@ -369,7 +369,7 @@ impl InodeTable { } } -fn write_inode_table(state: &mut State) -> Result { +fn write_inode_table(state: &mut State) -> Result { log::debug!("there are {} inodes", state.inode_table.count()); let inode_size: u32 = std::mem::size_of::()