Browse Source

AK: Make dbgln log the thread ID

This makes debugging multi-threaded programs easier.
Gunnar Beutner 4 years ago
parent
commit
ad688ffc73
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AK/Format.cpp

+ 1 - 1
AK/Format.cpp

@@ -645,7 +645,7 @@ void vdbgln(StringView fmtstr, TypeErasedFormatParams params)
             got_process_name = TriState::False;
             got_process_name = TriState::False;
     }
     }
     if (got_process_name == TriState::True)
     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
 #endif
 #endif