From 11772da783546c032b0393818747154d23fb6bae Mon Sep 17 00:00:00 2001 From: Vadim Galyant Date: Fri, 26 Jan 2018 20:46:34 +0900 Subject: [PATCH] [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 43ec4a58dce..070a6c98168 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 NTSTATUS diff --git a/drivers/usb/usbport/endpoint.c b/drivers/usb/usbport/endpoint.c index 56ad3411b21..0386bd0f149 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 6502c6549ab..7e29d3d6188 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 VOID diff --git a/drivers/usb/usbport/power.c b/drivers/usb/usbport/power.c index 56f150d8dd2..0dca45334dd 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 3be8e951ef3..cc85e73bca6 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); }