mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
AK: Include the processor id in log messages
This commit is contained in:
parent
e67402c702
commit
95bfc12ff4
Notes:
sideshowbarker
2024-07-18 22:48:55 +09:00
Author: https://github.com/tomuta
Commit: 95bfc12ff4
Pull-request: https://github.com/SerenityOS/serenity/pull/5073
2 changed files with 4 additions and 4 deletions
|
@ -670,9 +670,9 @@ void vdbgln(StringView fmtstr, TypeErasedFormatParams params)
|
|||
# ifdef KERNEL
|
||||
if (Kernel::Processor::is_initialized() && Kernel::Thread::current()) {
|
||||
auto& thread = *Kernel::Thread::current();
|
||||
builder.appendff("\033[34;1m[{}({}:{})]\033[0m: ", thread.process().name(), thread.pid().value(), thread.tid().value());
|
||||
builder.appendff("\033[34;1m[#{} {}({}:{})]\033[0m: ", Kernel::Processor::id(), thread.process().name(), thread.pid().value(), thread.tid().value());
|
||||
} else {
|
||||
builder.appendff("\033[34;1m[Kernel]\033[0m: ");
|
||||
builder.appendff("\033[34;1m[#{} Kernel]\033[0m: ", Kernel::Processor::id());
|
||||
}
|
||||
# else
|
||||
static TriState got_process_name = TriState::Unknown;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue