[USBPORT] Small changes for debugging.
authorVadim Galyant <vgal@rambler.ru>
Fri, 26 Jan 2018 11:46:34 +0000 (20:46 +0900)
committerVadim Galyant <vgal@rambler.ru>
Fri, 26 Jan 2018 11:46:34 +0000 (20:46 +0900)
drivers/usb/usbport/device.c
drivers/usb/usbport/endpoint.c
drivers/usb/usbport/ioctl.c
drivers/usb/usbport/power.c
drivers/usb/usbport/usbport.c

index 43ec4a5..070a6c9 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "usbport.h"
 
-//#define NDEBUG
+#define NDEBUG
 #include <debug.h>
 
 NTSTATUS
index 56ad341..0386bd0 100644 (file)
@@ -1279,7 +1279,7 @@ USBPORT_FlushClosedEndpointList(IN PDEVICE_OBJECT FdoDevice)
     PLIST_ENTRY ClosedList;
     PUSBPORT_ENDPOINT Endpoint;
 
-    DPRINT("USBPORT_FlushClosedEndpointList: ... \n");
+    DPRINT_CORE("USBPORT_FlushClosedEndpointList: ... \n");
 
     FdoExtension = FdoDevice->DeviceExtension;
 
index 6502c65..7e29d3d 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "usbport.h"
 
-//#define NDEBUG
+#define NDEBUG
 #include <debug.h>
 
 VOID
index 56f150d..0dca453 100644 (file)
@@ -105,8 +105,6 @@ USBPORT_DoSetPowerD0(IN PDEVICE_OBJECT FdoDevice)
 {
     DPRINT("USBPORT_DoSetPowerD0: FIXME!\n");
     return;
-    DbgBreakPoint();
-    //ASSERT(FALSE);
 }
 
 VOID
index 3be8e95..cc85e73 100644 (file)
@@ -637,8 +637,8 @@ USBPORT_InvalidateControllerHandler(IN PDEVICE_OBJECT FdoDevice,
 {
     PUSBPORT_DEVICE_EXTENSION FdoExtension;
 
-    DPRINT("USBPORT_InvalidateControllerHandler: Invalidate Type - %x\n",
-           Type);
+    DPRINT_CORE("USBPORT_InvalidateControllerHandler: Invalidate Type - %x\n",
+                Type);
 
     FdoExtension = FdoDevice->DeviceExtension;
 
@@ -869,7 +869,7 @@ USBPORT_DpcHandler(IN PDEVICE_OBJECT FdoDevice)
     LIST_ENTRY List;
     LONG LockCounter;
 
-    DPRINT("USBPORT_DpcHandler: ... \n");
+    DPRINT_CORE("USBPORT_DpcHandler: ... \n");
 
     FdoExtension = FdoDevice->DeviceExtension;
 
@@ -1953,7 +1953,7 @@ USBPORT_Unload(IN PDRIVER_OBJECT DriverObject)
 
     if (!MiniPortInterface)
     {
-        DPRINT("USBPORT_Unload: CRITICAL ERROR!!! USBPORT_FindMiniPort not found MiniPortInterface\n");
+        DPRINT("USBPORT_Unload: CRITICAL ERROR!!! Not found MiniPortInterface\n");
         KeBugCheckEx(BUGCODE_USB_DRIVER, 1, 0, 0, 0);
     }