mm: replace some printfs with debug_log
This commit is contained in:
+2
-2
@@ -174,7 +174,7 @@ void destroy_page_dir(uint32_t* page_dir_virt) {
|
||||
|
||||
// If the page table entry is present, free the physical page (frame) it points to
|
||||
if (pte & PAGE_PRESENT) {
|
||||
printf("freeing page %X\n", pte);
|
||||
debug_log("freeing page %X\n", pte);
|
||||
free_page((void*)(pte & ~0xFFF));
|
||||
}
|
||||
}
|
||||
@@ -187,6 +187,6 @@ void destroy_page_dir(uint32_t* page_dir_virt) {
|
||||
|
||||
// Finally, free the page directory itself.
|
||||
// We need its physical address to pass to the physical memory manager.
|
||||
printf("freeing PD page %X\n", virt_to_phys(page_dir_virt));
|
||||
debug_log("freeing PD page %X\n", virt_to_phys(page_dir_virt));
|
||||
free_page((void*)virt_to_phys(page_dir_virt));
|
||||
}
|
||||
Reference in New Issue
Block a user