From 5813cee4f73aafa86868169a1ed73c7d2fa70654 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 26 May 2024 23:14:41 +0800 Subject: [PATCH] fix debug va --- services/xous-swapper/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/xous-swapper/src/main.rs b/services/xous-swapper/src/main.rs index 4b8b33af0..5e732590d 100644 --- a/services/xous-swapper/src/main.rs +++ b/services/xous-swapper/src/main.rs @@ -336,7 +336,7 @@ fn write_to_swap_inner( // step 2: write the page to swap #[cfg(feature = "debug-print")] - writeln!(DebugUart {}, "WTS PID{} VA {:x}", candidate.raw_pid(), vaddr_in_swap).ok(); + writeln!(DebugUart {}, "WTS PID{} VA {:x}", candidate.raw_pid(), candidate.vaddr()).ok(); // this is safe because the page is aligned and initialized as it comes from the kernel // remember that this page is overwritten with encrypted data let buf: &mut [u8] = unsafe { core::slice::from_raw_parts_mut(vaddr_in_swap as *mut u8, PAGE_SIZE) };