From f88fe43abd6a039f25cc08a8dfd65f9a56ef9da7 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 12 Nov 2017 18:51:07 +0100 Subject: [PATCH] [NTOSKRNL] It is forbidden to call DbgPrint at DISPATCH_LEVEL with %wZ --- ntoskrnl/io/iomgr/device.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ntoskrnl/io/iomgr/device.c b/ntoskrnl/io/iomgr/device.c index 5d7f31e1471..9342d5a22d4 100644 --- a/ntoskrnl/io/iomgr/device.c +++ b/ntoskrnl/io/iomgr/device.c @@ -357,9 +357,8 @@ IopEditDeviceList(IN PDRIVER_OBJECT DriverObject, /* Not this one, keep moving */ if (!Previous->NextDevice) { - DPRINT1("Failed to remove PDO %p on driver %wZ (not found)\n", - DeviceObject, - &DeviceObject->DriverObject->DriverName); + DPRINT1("Failed to remove PDO %p (not found)\n", + DeviceObject); ASSERT(FALSE); KeReleaseQueuedSpinLock(LockQueueIoDatabaseLock, OldIrql);