display some extra debug messages on boot to see whats going on.
authorRobert Dickenson <robd@reactos.org>
Sun, 10 Nov 2002 13:40:08 +0000 (13:40 +0000)
committerRobert Dickenson <robd@reactos.org>
Sun, 10 Nov 2002 13:40:08 +0000 (13:40 +0000)
svn path=/trunk/; revision=3725

reactos/drivers/input/mouclass/mouclass.c

index a4e65d0..4879eef 100644 (file)
@@ -73,13 +73,18 @@ BOOLEAN MouseClassCallBack(PDEVICE_OBJECT ClassDeviceObject, PMOUSE_INPUT_DATA M
 
     // Throw data up to GDI callback
     if(*(PGDI_SERVICE_CALLBACK_ROUTINE)ClassDeviceExtension->GDIInformation.CallBack != NULL) {
 
     // Throw data up to GDI callback
     if(*(PGDI_SERVICE_CALLBACK_ROUTINE)ClassDeviceExtension->GDIInformation.CallBack != NULL) {
+         DbgPrint("MouseClassCallBack() Calling GDI callback at %p\n", ClassDeviceExtension->GDIInformation.CallBack);
       (*(PGDI_SERVICE_CALLBACK_ROUTINE)ClassDeviceExtension->GDIInformation.CallBack)
         (ClassDeviceExtension->PortData - ReadSize, ReadSize);
       (*(PGDI_SERVICE_CALLBACK_ROUTINE)ClassDeviceExtension->GDIInformation.CallBack)
         (ClassDeviceExtension->PortData - ReadSize, ReadSize);
-    }
+    } else {
+         DbgPrint("MouseClassCallBack() NO GDI callback installed\n");
+       }
 
     ClassDeviceExtension->PortData -= ReadSize;
     ClassDeviceExtension->InputCount -= ReadSize;
     ClassDeviceExtension->ReadIsPending = FALSE;
 
     ClassDeviceExtension->PortData -= ReadSize;
     ClassDeviceExtension->InputCount -= ReadSize;
     ClassDeviceExtension->ReadIsPending = FALSE;
+  } else {
+    DbgPrint("MouseClassCallBack() entered, InputCount = %d - DOING NOTHING\n", *InputCount);
   }
 
   return TRUE;
   }
 
   return TRUE;
@@ -232,6 +237,8 @@ NTSTATUS STDCALL MouseClassInternalDeviceControl(IN PDEVICE_OBJECT DeviceObject,
          DeviceExtension->GDIInformation =
             *((PGDI_INFORMATION)Stack->Parameters.DeviceIoControl.Type3InputBuffer);
 
          DeviceExtension->GDIInformation =
             *((PGDI_INFORMATION)Stack->Parameters.DeviceIoControl.Type3InputBuffer);
 
+         DbgPrint("MouseClassInternalDeviceControl() installed GDI callback at %p\n", DeviceExtension->GDIInformation.CallBack);
+
          status = STATUS_SUCCESS;
          break;
 
          status = STATUS_SUCCESS;
          break;