Skip to content

Commit a7a71e0

Browse files
committed
style: import log macros
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent bce3209 commit a7a71e0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/arch/x86_64/paging.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use core::fmt::Debug;
22

3+
use log::warn;
34
use x86_64::structures::paging::mapper::CleanUp;
45
use x86_64::structures::paging::{
56
Mapper, Page, PageSize, PageTableFlags, PhysFrame, RecursivePageTable,
@@ -25,7 +26,7 @@ where
2526
PhysFrame::range(start, end)
2627
};
2728

28-
log::warn!(
29+
warn!(
2930
"Mapping {count} {size} pages from {from_start:p}..{from_end:p} to {to_start:p}..{to_end:p}",
3031
count = (pages.end.start_address() - pages.start.start_address()) / S::SIZE,
3132
size = S::DEBUG_STR,

src/os/uefi/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mod console;
33
use alloc::string::String;
44
use alloc::vec::Vec;
55

6+
use log::info;
67
use qemu_exit::QEMUExit;
78
use uefi::fs::{FileSystem, Path};
89
use uefi::prelude::*;
@@ -21,7 +22,7 @@ fn read_app(bt: &BootServices) -> Vec<u8> {
2122
.expect("should read file content");
2223

2324
let len = data.len();
24-
log::info!("Read Hermit application from \"{path}\" (size = {len} B)");
25+
info!("Read Hermit application from \"{path}\" (size = {len} B)");
2526

2627
data
2728
}

0 commit comments

Comments
 (0)