Skip to content

Commit 25876c6

Browse files
committed
shut some logs
1 parent 97bde1f commit 25876c6

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

arceos/modules/axfs/src/root.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,25 +169,17 @@ impl VfsNodeOps for RootDirectory {
169169
}
170170
//初始化文件系统
171171
pub(crate) fn init_rootfs(disk: Option<crate::dev::Disk>) {
172-
// 确切的代码路径标记
173-
#[cfg(feature = "myfs")]
174-
log::error!("COMPILING: myfs branch");
175-
176-
#[cfg(feature = "ramfs")]
177-
log::error!("COMPILING: ramfs branch");
178-
179-
#[cfg(feature = "fatfs")]
180-
log::error!("COMPILING: fatfs branch");
181-
182172
cfg_if::cfg_if! {
183173
// if #[cfg(feature = "ramfs")] {// 新增:优先使用 ramfs
184174
// let main_fs = mounts::ramfs();
185175
// info!("Using RAMFS as main filesystem");
186176
// }else
187177
if #[cfg(feature = "myfs")] { // override the default filesystem
178+
log::error!("COMPILING: myfs branch");
188179
let main_fs = fs::myfs::new_myfs(disk.unwrap());
189180
}
190181
else if #[cfg(feature = "fatfs")] {
182+
log::error!("COMPILING: fatfs branch");
191183
static FAT_FS: LazyInit<Arc<fs::fatfs::FatFileSystem>> = LazyInit::new();
192184
FAT_FS.init_once(Arc::new(fs::fatfs::FatFileSystem::new(disk.unwrap())));
193185
FAT_FS.init();

0 commit comments

Comments
 (0)