[ros-diffs] [cgutman] 56205: [NTOSKRNL] - Print the parent devices when a duplicate device is detected

cgutman at svn.reactos.org cgutman at svn.reactos.org
Wed Mar 21 15:10:15 UTC 2012


Author: cgutman
Date: Wed Mar 21 15:10:15 2012
New Revision: 56205

URL: http://svn.reactos.org/svn/reactos?rev=56205&view=rev
Log:
[NTOSKRNL]
- Print the parent devices when a duplicate device is detected

Modified:
    trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c?rev=56205&r1=56204&r2=56205&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Wed Mar 21 15:10:15 2012
@@ -2006,7 +2006,12 @@
    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,




More information about the Ros-diffs mailing list