[NTOSKRNL] It is forbidden to call DbgPrint at DISPATCH_LEVEL with %wZ
[reactos.git] / ntoskrnl / io / iomgr / device.c
index 5d7f31e..9342d5a 100644 (file)
@@ -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);