From ad688ffc73d79cbf61db1ceb09a233de4eb016b4 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 29 Apr 2021 21:16:31 +0200 Subject: [PATCH] AK: Make dbgln log the thread ID This makes debugging multi-threaded programs easier. --- AK/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Format.cpp b/AK/Format.cpp index 5a98f79b70..537a3cd06f 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -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