https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c0f157e58989a85c43ea5…
commit c0f157e58989a85c43ea5c6e93c210a2effff7c5
Author: Vadim Galyant <vgal(a)rambler.ru>
AuthorDate: Sat Jan 6 12:48:37 2018 +0900
[USBHUB] Move DPRINT after check Status.
---
drivers/usb/usbhub_new/pnp.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/usbhub_new/pnp.c b/drivers/usb/usbhub_new/pnp.c
index a6dd9cc656..f4377524db 100644
--- a/drivers/usb/usbhub_new/pnp.c
+++ b/drivers/usb/usbhub_new/pnp.c
@@ -1136,10 +1136,6 @@ EnumStart:
{
PortData = &HubExtension->PortData[Port - 1];
- DPRINT_ENUM("USBH_FdoQueryBusRelations: Port - %x, ConnectStatus -
%x\n",
- Port,
-
PortData->PortStatus.PortStatus.Usb20PortStatus.CurrentConnectStatus);
-
if (HubExtension->HubFlags & USBHUB_FDO_FLAG_DEVICE_FAILED)
{
continue;
@@ -1152,11 +1148,16 @@ EnumStart:
if (!NT_SUCCESS(Status))
{
+ DPRINT_ENUM("USBH_FdoQueryBusRelations: Status - %X\n", Status);
HubExtension->HubFlags |= USBHUB_FDO_FLAG_DEVICE_FAILED;
DeviceRelations->Count = 0;
goto EnumStart;
}
+ DPRINT_ENUM("USBH_FdoQueryBusRelations: Port - %x, ConnectStatus -
%x\n",
+ Port,
+
PortData->PortStatus.PortStatus.Usb20PortStatus.CurrentConnectStatus);
+
PdoDevice = PortData->DeviceObject;
if (PortData->DeviceObject)