Skip to content

Commit

Permalink
style: import log macros
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 9, 2024
1 parent bce3209 commit a7a71e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/arch/x86_64/paging.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/os/uefi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand All @@ -21,7 +22,7 @@ fn read_app(bt: &BootServices) -> Vec<u8> {
.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
}
Expand Down

0 comments on commit a7a71e0

Please sign in to comment.