소스 검색

AK: Make dbgln log the thread ID

This makes debugging multi-threaded programs easier.
Gunnar Beutner 4 년 전
부모
커밋
ad688ffc73
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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