[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Wed, 21 Mar 2012 15:10:15 +0000 (15:10 +0000)
committerCameron Gutman <aicommander@gmail.com>
Wed, 21 Mar 2012 15:10:15 +0000 (15:10 +0000)
- Print the parent devices when a duplicate device is detected

svn path=/trunk/; revision=56205

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

index 0823e46..2f5583e 100644 (file)
@@ -2006,7 +2006,12 @@ IopActionInterrogateDeviceStack(PDEVICE_NODE DeviceNode,
    OldDeviceObject = IopGetDeviceObjectFromDeviceInstance(&InstancePathU);
    if (OldDeviceObject != NULL)
    {
+       PDEVICE_NODE OldDeviceNode = IopGetDeviceNode(OldDeviceObject);
+
        DPRINT1("Duplicate device instance '%wZ'\n", &InstancePathU);
+       DPRINT1("Current instance parent: '%wZ'\n", &DeviceNode->Parent->InstancePath);
+       DPRINT1("Old instance parent: '%wZ'\n", &OldDeviceNode->Parent->InstancePath);
+
        KeBugCheckEx(PNP_DETECTED_FATAL_ERROR,
                     0x01,
                     (ULONG_PTR)DeviceNode->PhysicalDeviceObject,