Index: /trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
===================================================================
--- /trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp	(revision 222)
+++ /trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp	(revision 223)
@@ -24,4 +24,6 @@
 #include "SysHlp.h"
 
+#define LOG_GROUP LOG_GROUP_HGCM
+#include <VBox/log.h>
 #include <iprt/assert.h>
 
@@ -55,9 +57,11 @@
     if (NT_SUCCESS (rc))
     {
+        Log(("vbglDriverOpen VBoxGuest successful pDeviceObject=%x\n", pDeviceObject));
         pDriver->pDeviceObject = pDeviceObject;
         pDriver->pFileObject = pFileObject;
         return VINF_SUCCESS;
     }
-/** @todo return RTErrConvertFromNtStatus(rc)! */
+    /** @todo return RTErrConvertFromNtStatus(rc)! */
+    Log(("vbglDriverOpen VBoxGuest failed with ntstatus=%x\n", rc));
     return rc;
 #else
@@ -93,8 +97,12 @@
     if (irp == NULL)
     {
+        Log(("vbglDriverIOCtl: IoBuildDeviceIoControlRequest failed\n"));
         return VERR_NO_MEMORY;
     }
 
     NTSTATUS rc = IoCallDriver (pDriver->pDeviceObject, irp);
+
+    if (!NT_SUCCESS(rc))
+        Log(("vbglDriverIOCtl: IoCallDriver failed with ntstatus=%x\n", rc));
 
     return NT_SUCCESS(rc)? VINF_SUCCESS: VERR_VBGL_IOCTL_FAILED;
@@ -107,4 +115,5 @@
 {
 #ifdef __WIN__
+    Log(("vbglDriverClose pDeviceObject=%x\n", pDriver->pDeviceObject));
     ObDereferenceObject (pDriver->pFileObject);
 #else
