diff --git a/KernelLand/Kernel/threads.c b/KernelLand/Kernel/threads.c
index b2ce594fe36657a5a8bab241f24e63da82ed9c91..4dcdb9461981a6dac8f49bfe85e4ce44a0fd8139 100644
--- a/KernelLand/Kernel/threads.c
+++ b/KernelLand/Kernel/threads.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <hal_proc.h>
 #include <semaphore.h>
+#include <rwlock.h>
 #include <vfs_threads.h>	// VFS Handle maintainence
 #include <events.h>
 
@@ -1251,6 +1252,11 @@ void Threads_int_DumpThread(tThread *thread)
 	case THREAD_STAT_MUTEXSLEEP:
 		Log("  Mutex Pointer: %p", thread->WaitPointer);
 		break;
+	case THREAD_STAT_RWLOCKSLEEP:
+		Log("  Lock Pointer: %p", thread->WaitPointer);
+		Log("  Lock Name: %s",
+			((tRWLock*)thread->WaitPointer)->Name);
+		break;
 	case THREAD_STAT_SEMAPHORESLEEP:
 		Log("  Semaphore Pointer: %p", thread->WaitPointer);
 		Log("  Semaphore Name: %s:%s",