[NTOSKRNL]

- Print the parent devices when a duplicate device is detected

svn path=/trunk/; revision=56205
This commit is contained in:
Cameron Gutman 2012-03-21 15:10:15 +00:00
parent e6c7846c3a
commit 55f77d65f2

View 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,