Skip to content

Commit

Permalink
AK: Make dbgln log the thread ID
Browse files Browse the repository at this point in the history
This makes debugging multi-threaded programs easier.
  • Loading branch information
gunnarbeutner authored and awesomekling committed Apr 29, 2021
1 parent 3d4afe7 commit ad688ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AK/Format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ad688ff

Please sign in to comment.