diff --git a/Utilities/StrFmt.cpp b/Utilities/StrFmt.cpp index 6153b14d43..067ba55a9b 100644 --- a/Utilities/StrFmt.cpp +++ b/Utilities/StrFmt.cpp @@ -154,12 +154,12 @@ namespace fmt #ifdef _WIN32 if (DWORD error = GetLastError()) { - fmt::append(out, " (e%#x)", error); + fmt::append(out, " (e=%#x)", error); } #else if (int error = errno) { - fmt::append(out, " (e%d)", error); + fmt::append(out, " (e=%d)", error); } #endif diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 4069e10b46..8f44994129 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1937,7 +1937,7 @@ void thread_ctrl::start(const std::shared_ptr& ctrl, task_stack tas verify("thread_ctrl::start" HERE), thread != 0; #else pthread_t thread; - verify("thread_ctrl::start" HERE), pthread_create(&thread, nullptr, entry, ctrl.get()); + verify("thread_ctrl::start" HERE), pthread_create(&thread, nullptr, entry, ctrl.get()) == 0; #endif // TODO: this is unsafe and must be duplicated in thread_ctrl::initialize