diff --git a/src/arch/x86_64/paging.rs b/src/arch/x86_64/paging.rs index 14253564..8a3e80c8 100644 --- a/src/arch/x86_64/paging.rs +++ b/src/arch/x86_64/paging.rs @@ -1,5 +1,6 @@ use core::fmt::Debug; +use log::warn; use x86_64::structures::paging::mapper::CleanUp; use x86_64::structures::paging::{ Mapper, Page, PageSize, PageTableFlags, PhysFrame, RecursivePageTable, @@ -25,7 +26,7 @@ where PhysFrame::range(start, end) }; - log::warn!( + warn!( "Mapping {count} {size} pages from {from_start:p}..{from_end:p} to {to_start:p}..{to_end:p}", count = (pages.end.start_address() - pages.start.start_address()) / S::SIZE, size = S::DEBUG_STR, diff --git a/src/os/uefi/mod.rs b/src/os/uefi/mod.rs index dde9b5fe..4e3d1877 100644 --- a/src/os/uefi/mod.rs +++ b/src/os/uefi/mod.rs @@ -3,6 +3,7 @@ mod console; use alloc::string::String; use alloc::vec::Vec; +use log::info; use qemu_exit::QEMUExit; use uefi::fs::{FileSystem, Path}; use uefi::prelude::*; @@ -21,7 +22,7 @@ fn read_app(bt: &BootServices) -> Vec { .expect("should read file content"); let len = data.len(); - log::info!("Read Hermit application from \"{path}\" (size = {len} B)"); + info!("Read Hermit application from \"{path}\" (size = {len} B)"); data }