From c10087e6cdbfc147acefb36392ecabc2cc39d942 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 17 Apr 2025 16:40:56 -0400 Subject: [PATCH] correct some minor errors; --- src/common/Thread.cpp | 4 ++-- src/common/Thread.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/Thread.cpp b/src/common/Thread.cpp index 3dfcad36..2873b55b 100644 --- a/src/common/Thread.cpp +++ b/src/common/Thread.cpp @@ -119,7 +119,7 @@ bool Thread::runAsThread(void* obj, void *(*startRoutine)(void *), thread_t* thr #if defined(_WIN32) HANDLE hnd = ::CreateThread(NULL, 0, reinterpret_cast((void*)startRoutine), thread, CREATE_SUSPENDED, NULL); if (hnd == NULL) { - LogError(LOG_NET, "Error returned from CreateThread, err: %lu", ::GetLastError()); + LogError(LOG_HOST, "Error returned from CreateThread, err: %lu", ::GetLastError()); return false; } @@ -127,7 +127,7 @@ bool Thread::runAsThread(void* obj, void *(*startRoutine)(void *), thread_t* thr ::ResumeThread(hnd); #else if (::pthread_create(&thread->thread, NULL, startRoutine, thread) != 0) { - LogError(LOG_NET, "Error returned from pthread_create, err: %d", errno); + LogError(LOG_HOST, "Error returned from pthread_create, err: %d", errno); return false; } #endif // defined(_WIN32) diff --git a/src/common/Thread.h b/src/common/Thread.h index e101f445..66a0c81e 100644 --- a/src/common/Thread.h +++ b/src/common/Thread.h @@ -12,7 +12,7 @@ * @defgroup threading Threading * @brief Defines and implements threading routines. * @ingroup common - + * * @file Thread.h * @ingroup threading * @file Thread.cpp