mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
Kernel: Tidy up debug logging a little bit
When using dbg() in the kernel, the output is automatically prefixed with [Process(PID:TID)]. This makes it a lot easier to understand which thread is generating the output. This patch also cleans up some common logging messages and removes the now-unnecessary "dbg() << *current << ..." pattern.
This commit is contained in:
parent
5dd5d5ca4e
commit
f38cfb3562
9 changed files with 41 additions and 38 deletions
|
@ -570,7 +570,7 @@ bool MemoryManager::validate_range(const Process& process, VirtualAddress base_v
|
|||
VirtualAddress vaddr = base_vaddr.page_base();
|
||||
VirtualAddress end_vaddr = base_vaddr.offset(size - 1).page_base();
|
||||
if (end_vaddr < vaddr) {
|
||||
dbg() << *current << " Shenanigans! Asked to validate " << base_vaddr << " size=" << size;
|
||||
dbg() << "Shenanigans! Asked to validate " << base_vaddr << " size=" << size;
|
||||
return false;
|
||||
}
|
||||
const Region* region = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue