$OpenBSD: patch-provider_server_ECThreadManager_cpp,v 1.1 2011/06/02 12:46:37 ajacoutot Exp $
--- provider/server/ECThreadManager.cpp.orig	Thu Jun  2 11:46:06 2011
+++ provider/server/ECThreadManager.cpp	Thu Jun  2 11:46:35 2011
@@ -149,7 +149,7 @@ void *ECWorkerThread::Work(void *lpParam)
     bool fStop = false;
 	int err = 0;
 
-    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started thread %08x", (ULONG)pthread_self());
+    lpThis->m_lpLogger->Log(EC_LOGLEVEL_DEBUG, "Started thread %08x", (uintptr_t)pthread_self());
     
     while(1) {
         // Get the next work item, don't wait for new items
@@ -159,7 +159,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;
             }
                 
