From 2c05661f704343d55e8ba8d7e93a0fd1ca90411c Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 7 Feb 2024 23:15:30 +0100 Subject: [PATCH] Improve debug message --- core/uaddrspace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/uaddrspace.c b/core/uaddrspace.c index e6bb34f..4278c47 100644 --- a/core/uaddrspace.c +++ b/core/uaddrspace.c @@ -273,7 +273,7 @@ int uAddrSpaceHeapCheckNAlloc(struct uAddrSpace *as, vaddr_t addr) struct uAddrVirtualReg *newReg; int right = PAGING_MEM_USER | PAGING_MEM_WRITE | PAGING_MEM_READ; - pr_devel("Checking 0x%lx inside 0x%lx and 0x%lx\n", addr, as->heapStart, + pr_devel("Heap check: 0x%lx inside 0x%lx and 0x%lx\n", addr, as->heapStart, as->heapStart + as->heapSize); if (addr < as->heapStart || addr >= as->heapStart + as->heapSize) { @@ -395,6 +395,8 @@ int uAddrSpaceSolvePageFault(struct uAddrSpace *as, vaddr_t faultAddr, int isWri if (reg == NULL) return -EFAULT; + pr_devel("Virtual Region for pageflt found\n"); + if (isWriteAccess && !(reg->right & PAGING_MEM_WRITE)) return -EACCES;