From 55f77d65f210f99f0d07b6eedf0721811abd20f3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 21 Mar 2012 15:10:15 +0000 Subject: [PATCH] [NTOSKRNL] - Print the parent devices when a duplicate device is detected svn path=/trunk/; revision=56205 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index 0823e46a1c9..2f5583eab81 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -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,