diff --git a/winpr/libwinpr/thread/thread.c b/winpr/libwinpr/thread/thread.c index 5323078f3..1214d41f3 100644 --- a/winpr/libwinpr/thread/thread.c +++ b/winpr/libwinpr/thread/thread.c @@ -529,7 +529,8 @@ static void* thread_launcher(void* arg) if (!TlsSetValue(currentThreadTlsIndex, thread)) { - WLog_ERR(TAG, "thread %d, unable to set current thread value", pthread_self()); + WLog_ERR(TAG, "thread %" PRIu64 ", unable to set current thread value", + WINPR_CXX_COMPAT_CAST(uint64_t, pthread_self())); goto exit; }