Index: include/pthread.h
===================================================================
--- include/pthread.h	(revision 5264)
+++ include/pthread.h	(working copy)
@@ -92,7 +92,7 @@
 #define WINPTHREAD_API
 #endif
 
-/* #define WINPTHREAD_DBG 1 */
+#define WINPTHREAD_DBG 1
 
 /* Compatibility stuff: */
 #define RWLS_PER_THREAD						8
Index: src/rwlock.c
===================================================================
--- src/rwlock.c	(revision 5264)
+++ src/rwlock.c	(working copy)
@@ -126,7 +126,7 @@
 }
 
 #ifdef WINPTHREAD_DBG
-static int print_state = 0;
+static int print_state = 1;
 void rwl_print_set(int state)
 {
     print_state = state;
Index: src/mutex.c
===================================================================
--- src/mutex.c	(revision 5264)
+++ src/mutex.c	(working copy)
@@ -156,7 +156,7 @@
     print_state = state;
 }
 
-void mutex_print(pthread_mutex_t *m, char *txt)
+void mutex_print(volatile pthread_mutex_t *m, char *txt)
 {
     if (!print_state) return;
     mutex_t *m_ = (mutex_t *)*m;
Index: src/thread.c
===================================================================
--- src/thread.c	(revision 5264)
+++ src/thread.c	(working copy)
@@ -392,7 +392,7 @@
 #endif
 
 #ifdef WINPTHREAD_DBG
-static int print_state = 0;
+static int print_state = 1;
 void thread_print_set (int state)
 {
   print_state = state;
Index: src/cond.c
===================================================================
--- src/cond.c	(revision 5264)
+++ src/cond.c	(working copy)
@@ -55,7 +55,7 @@
 int do_sema_b_wait_intern (HANDLE sema, int nointerrupt, DWORD timeout);
 
 #ifdef WINPTHREAD_DBG
-static int print_state = 0;
+static int print_state = 1;
 static FILE *fo;
 void cond_print_set(int state, FILE *f)
 {
