From d3c01c1647eb5543c9261277a1c052a2b34e04e9 Mon Sep 17 00:00:00 2001 From: memN0ps <89628341+memN0ps@users.noreply.github.com> Date: Sun, 28 Jan 2024 17:31:51 +1300 Subject: [PATCH] Update hook.rs --- driver/src/hook.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/src/hook.rs b/driver/src/hook.rs index 033436c..bb3689f 100644 --- a/driver/src/hook.rs +++ b/driver/src/hook.rs @@ -44,8 +44,8 @@ type MmIsAddressValidType = extern "C" fn(VirtualAddress: PVOID) -> bool; /// The caller must ensure this is the case to avoid undefined behavior. pub extern "C" fn mm_is_address_valid(virtual_address: u64) -> bool { // Log the address from which `MmIsAddressValid` was called. - log::trace!("MmIsAddressValid called from {:#x}", unsafe { - return_address().read_volatile() // Reads the return address in a volatile manner to prevent optimizations. + log::debug!("MmIsAddressValid called from {:#x}", unsafe { + return_address().read_volatile() // Reads the return address in a svolatile manner to prevent optimizations. }); log::debug!("First Parameter Value: {:x}", virtual_address);