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.…
==============================================================================
--- 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,