[USBPORT] Small changes for debugging.

This commit is contained in:
Vadim Galyant 2018-01-26 20:46:34 +09:00
parent f37a3dc42f
commit 11772da783
5 changed files with 7 additions and 9 deletions

View file

@ -7,7 +7,7 @@
#include "usbport.h"
//#define NDEBUG
#define NDEBUG
#include <debug.h>
NTSTATUS

View 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;

View file

@ -7,7 +7,7 @@
#include "usbport.h"
//#define NDEBUG
#define NDEBUG
#include <debug.h>
VOID

View file

@ -105,8 +105,6 @@ USBPORT_DoSetPowerD0(IN PDEVICE_OBJECT FdoDevice)
{
DPRINT("USBPORT_DoSetPowerD0: FIXME!\n");
return;
DbgBreakPoint();
//ASSERT(FALSE);
}
VOID

View 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);
}