diff --git a/ableos/src/logger.rs b/ableos/src/logger.rs index 883d3d48..34cb8c46 100644 --- a/ableos/src/logger.rs +++ b/ableos/src/logger.rs @@ -58,7 +58,7 @@ impl log::Log for SimpleLogger { record.args(), ); - println!("{msg}"); + // println!("{msg}"); if KERNEL_CONF.logging.log_to_serial { serial_println!( diff --git a/ableos/src/scratchpad.rs b/ableos/src/scratchpad.rs index c059fef4..6599f989 100644 --- a/ableos/src/scratchpad.rs +++ b/ableos/src/scratchpad.rs @@ -10,6 +10,7 @@ use crate::devices::pci::brute_force_scan; use crate::image::mono_bitmap::bruh; use crate::systeminfo::{KERNEL_VERSION, RELEASE_TYPE}; use crate::time::fetch_time; +use crate::KERNEL_STATE; use crate::{ arch::shutdown, filesystem::FILE_SYSTEM, rhai_shell::KEYBUFF, vterm::VTerm, wasm_jumploader::run_program, @@ -82,6 +83,7 @@ pub fn scratchpad() { disable(); let tick_time = fetch_time(); + let hostname = &KERNEL_STATE.lock().hostname; let allocator = ALLOCATOR.lock(); let size = allocator.size(); @@ -92,7 +94,7 @@ pub fn scratchpad() { println!( "{} ,-------. OS: \0BLUE\0AbleOS\0RESET\0 - ,'\\ _ _`. Host: None + ,'\\ _ _`. Host: \0PINK\0{}\0RESET\0 / \\)_)-)_)-\\ Kernel: \0RED\0AKern-{}-v{}\0RESET\0 : : Uptime: \0GREEN\0{}\0RESET\0 \\ / Packages: None @@ -106,6 +108,7 @@ pub fn scratchpad() { // include_str!("../assets/balloon.txt"), // kstate.hostname, BANNER_WIDTH, + hostname, RELEASE_TYPE, KERNEL_VERSION, tick_time,