https://git.reactos.org/?p=reactos.git;a=commitdiff;h=11772da783546c032b0393818747154d23fb6bae

commit 11772da783546c032b0393818747154d23fb6bae
Author:     Vadim Galyant <v...@rambler.ru>
AuthorDate: Fri Jan 26 20:46:34 2018 +0900
Commit:     Vadim Galyant <v...@rambler.ru>
CommitDate: Fri Jan 26 20:46:34 2018 +0900

    [USBPORT] Small changes for debugging.
---
 drivers/usb/usbport/device.c   | 2 +-
 drivers/usb/usbport/endpoint.c | 2 +-
 drivers/usb/usbport/ioctl.c    | 2 +-
 drivers/usb/usbport/power.c    | 2 --
 drivers/usb/usbport/usbport.c  | 8 ++++----
 5 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/drivers/usb/usbport/device.c b/drivers/usb/usbport/device.c
index 43ec4a58dc..070a6c9816 100644
--- a/drivers/usb/usbport/device.c
+++ b/drivers/usb/usbport/device.c
@@ -7,7 +7,7 @@
 
 #include "usbport.h"
 
-//#define NDEBUG
+#define NDEBUG
 #include <debug.h>
 
 NTSTATUS
diff --git a/drivers/usb/usbport/endpoint.c b/drivers/usb/usbport/endpoint.c
index 56ad3411b2..0386bd0f14 100644
--- a/drivers/usb/usbport/endpoint.c
+++ b/drivers/usb/usbport/endpoint.c
@@ -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;
 
diff --git a/drivers/usb/usbport/ioctl.c b/drivers/usb/usbport/ioctl.c
index 6502c6549a..7e29d3d618 100644
--- a/drivers/usb/usbport/ioctl.c
+++ b/drivers/usb/usbport/ioctl.c
@@ -7,7 +7,7 @@
 
 #include "usbport.h"
 
-//#define NDEBUG
+#define NDEBUG
 #include <debug.h>
 
 VOID
diff --git a/drivers/usb/usbport/power.c b/drivers/usb/usbport/power.c
index 56f150d8dd..0dca45334d 100644
--- a/drivers/usb/usbport/power.c
+++ b/drivers/usb/usbport/power.c
@@ -105,8 +105,6 @@ USBPORT_DoSetPowerD0(IN PDEVICE_OBJECT FdoDevice)
 {
     DPRINT("USBPORT_DoSetPowerD0: FIXME!\n");
     return;
-    DbgBreakPoint();
-    //ASSERT(FALSE);
 }
 
 VOID
diff --git a/drivers/usb/usbport/usbport.c b/drivers/usb/usbport/usbport.c
index 3be8e951ef..cc85e73bca 100644
--- a/drivers/usb/usbport/usbport.c
+++ b/drivers/usb/usbport/usbport.c
@@ -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);
     }
 

Reply via email to