AK: Make dbgln log the thread ID

This makes debugging multi-threaded programs easier.
This commit is contained in:
Gunnar Beutner 2021-04-29 21:16:31 +02:00 committed by Andreas Kling
parent 3d4afe7614
commit ad688ffc73
Notes: sideshowbarker 2024-07-18 18:53:34 +09:00

View file

@ -645,7 +645,7 @@ void vdbgln(StringView fmtstr, TypeErasedFormatParams params)
got_process_name = TriState::False;
}
if (got_process_name == TriState::True)
builder.appendff("\033[33;1m{}({})\033[0m: ", process_name_buffer, getpid());
builder.appendff("\033[33;1m{}({}:{})\033[0m: ", process_name_buffer, getpid(), gettid());
# endif
#endif