From a7a71e05b0dd5e63a6827889ea233f428414e516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Mon, 8 Apr 2024 16:35:34 +0200 Subject: [PATCH] style: import log macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/arch/x86_64/paging.rs | 3 ++- src/os/uefi/mod.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 }