Sfoglia il codice sorgente

AK: Make dbgln log the thread ID

This makes debugging multi-threaded programs easier.
Gunnar Beutner 4 anni fa
parent
commit
ad688ffc73
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
     }
     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