mm: replace some printfs with debug_log

This commit is contained in:
2025-06-23 23:47:29 +03:00
parent b769ac0a58
commit bfdd3b6b6a
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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));
}