From ccae87cf906d19c380dbb69f59a91c23c8cba95d Mon Sep 17 00:00:00 2001 From: vasilito Date: Sat, 11 Jul 2026 15:02:30 +0300 Subject: [PATCH] fix: use info! macro instead of log::info! in startup/mod.rs --- src/startup/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/startup/mod.rs b/src/startup/mod.rs index 2fb30bddcc..4596adf7fd 100644 --- a/src/startup/mod.rs +++ b/src/startup/mod.rs @@ -137,10 +137,10 @@ pub(crate) fn init_env() -> &'static [u8] { } extern "C" fn userspace_init() { - log::info!("userspace_init: entered bootstrap context"); + info!("userspace_init: entered bootstrap context"); let mut token = unsafe { CleanLockToken::new() }; let bootstrap = BOOTSTRAP.get().expect("BOOTSTRAP was not set"); - log::info!("userspace_init: calling usermode_bootstrap"); + info!("userspace_init: calling usermode_bootstrap"); unsafe { crate::syscall::process::usermode_bootstrap(bootstrap, &mut token) } } @@ -191,7 +191,7 @@ pub(crate) fn kmain(bootstrap: Bootstrap) -> ! { } numa::dump_info(); - log::info!("kmain: dump_info done, calling run_userspace"); + info!("kmain: dump_info done, calling run_userspace"); run_userspace(&mut token) } @@ -236,13 +236,13 @@ fn run_userspace(token: &mut CleanLockToken) -> ! { SwitchResult::Switched => { switch_count += 1; if switch_count <= 5 || switch_count % 10000 == 0 { - log::info!("run_userspace: switch {} completed", switch_count); + info!("run_userspace: switch {} completed", switch_count); } interrupt::enable_and_nop(); } SwitchResult::AllContextsIdle => { if switch_count == 0 { - log::info!("run_userspace: AllContextsIdle on first switch — no runnable contexts"); + info!("run_userspace: AllContextsIdle on first switch — no runnable contexts"); } switch_count += 1; // Enable interrupts, then halt CPU (to save power) until the next interrupt is actually fired.