mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Make dbgln log the thread ID
This makes debugging multi-threaded programs easier.
This commit is contained in:
parent
3d4afe7614
commit
ad688ffc73
Notes:
sideshowbarker
2024-07-18 18:53:34 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/ad688ffc73d Pull-request: https://github.com/SerenityOS/serenity/pull/6744
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue