From dcc964c3c1b54776f51f218f6ca32138f0e9c48e Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Thu, 30 Jun 2022 19:44:06 +0800 Subject: [PATCH] kernel: riscv: use klog for memory exception printing Signed-off-by: Sean Cross --- kernel/src/arch/riscv/irq.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/src/arch/riscv/irq.rs b/kernel/src/arch/riscv/irq.rs index 09bbcf67d..1a85a461b 100644 --- a/kernel/src/arch/riscv/irq.rs +++ b/kernel/src/arch/riscv/irq.rs @@ -190,7 +190,7 @@ pub extern "C" fn trap_handler( crate::arch::mem::ensure_page_exists_inner(addr) .map(|_new_page| { #[cfg(all(feature = "debug-print", feature = "print-panics"))] - println!("Handing page {:08x} to process", _new_page); + klog!("Handing page {:08x} to process", _new_page); ArchProcess::with_current_mut(|process| { crate::arch::syscall::resume( current_pid().get() == 1, @@ -271,7 +271,6 @@ pub extern "C" fn trap_handler( // determine if there is an exception handler in this particular program // and call that handler if so. if let Some(args) = generate_exception_args(&ex) { - klog!("Generated exception args -- invoking handler"); if let Some(handler) = SystemServices::with_mut(|ss| ss.begin_exception_handler(pid)) { klog!("Exception handler for process exists ({:x?})", handler); // If this is the sort of exception that may be able to be handled by