$OpenBSD: patch-provider_server_ECThreadManager_cpp,v 1.6 2015/11/02 11:06:34 robert Exp $
--- provider/server/ECThreadManager.cpp.orig	Wed Aug  5 17:30:48 2015
+++ provider/server/ECThreadManager.cpp	Thu Aug 20 12:36:50 2015
@@ -164,7 +164,7 @@ void *ECWorkerThread::Work(void *lpParam)
     bool fStop = false;
 	int err = 0;
 
-    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started%sthread %08x", lpPrio ? " priority " : " ", (ULONG)pthread_self());
+    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started%sthread %08x", lpPrio ? " priority " : " ", (uintptr_t)pthread_self());
     
     while(1) {
 		set_thread_name(pthread_self(), "z-s: idle thread");
@@ -176,7 +176,7 @@ void *ECWorkerThread::Work(void *lpParam)
             
             // We were requested to exit due to idle state
             if(fStop) {
-                lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Thread %08x idle and requested to exit", (ULONG)pthread_self());
+                lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Thread %08x idle and requested to exit", (uintptr_t)pthread_self());
                 break;
             }
                 
