Kernel/Memory: Use %p in printf
This commit is contained in:
parent
8ce58e9e30
commit
d5f59b666a
@ -148,7 +148,7 @@ void* MemoryManager::get_pages_at(uint64_t addr, uint64_t count, int flags)
|
||||
if (!count) return 0;
|
||||
if (count == 1) return get_page_at(addr, flags);
|
||||
#ifdef MM_DEBUG
|
||||
kdbgln("allocating several pages (%ld), at address %ld", count, addr);
|
||||
kdbgln("allocating several pages (%ld), at address %lx", count, addr);
|
||||
#endif
|
||||
for (uint64_t i = 0; i < count; i++)
|
||||
{
|
||||
@ -164,7 +164,7 @@ void* MemoryManager::get_pages_at(uint64_t addr, uint64_t count, int flags)
|
||||
}
|
||||
kernelVMM.map(addr + (i * PAGE_SIZE), (uint64_t)physicalAddress, flags);
|
||||
#ifdef MM_DEBUG
|
||||
kdbgln("allocating virtual %lx, physical %lx", virtualAddress + (i * PAGE_SIZE), (uint64_t)physicalAddress);
|
||||
kdbgln("allocating virtual %lx, physical %p", virtualAddress + (i * PAGE_SIZE), physicalAddress);
|
||||
#endif
|
||||
}
|
||||
return (void*)addr;
|
||||
@ -184,7 +184,7 @@ void MemoryManager::release_pages(void* pages, uint64_t count)
|
||||
ASSERT(physicalAddress != UINT64_MAX);
|
||||
kernelVMM.unmap((uint64_t)page);
|
||||
#ifdef MM_DEBUG
|
||||
kdbgln("releasing virtual %lx, physical %lx", (uint64_t)page, physicalAddress);
|
||||
kdbgln("releasing virtual %p, physical %lx", page, physicalAddress);
|
||||
#endif
|
||||
PMM::free_page((void*)physicalAddress);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user