mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
Kernel: Use klog() instead of kprintf()
Also, duplicate data in dbg() and klog() calls were removed. In addition, leakage of virtual address to kernel log is prevented. This is done by replacing kprintf() calls to dbg() calls with the leaked data instead. Also, other kprintf() calls were replaced with klog().
This commit is contained in:
parent
19aa53e1f9
commit
0fc60e41dd
53 changed files with 397 additions and 573 deletions
|
@ -130,7 +130,7 @@ Range RangeAllocator::allocate_anywhere(size_t size, size_t alignment)
|
|||
#endif
|
||||
return allocated_range;
|
||||
}
|
||||
kprintf("VRA: Failed to allocate anywhere: %zu, %zu\n", size, alignment);
|
||||
klog() << "VRA: Failed to allocate anywhere: " << size << ", " << alignment;
|
||||
return {};
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ Range RangeAllocator::allocate_specific(VirtualAddress base, size_t size)
|
|||
#endif
|
||||
return allocated_range;
|
||||
}
|
||||
kprintf("VRA: Failed to allocate specific range: %x(%u)\n", base.get(), size);
|
||||
dbg() << "VRA: Failed to allocate specific range: " << base << "(" << size << ")";
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue