[NTOS:PNP]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 2 Apr 2017 14:41:17 +0000 (14:41 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 2 Apr 2017 14:41:17 +0000 (14:41 +0000)
- Silence debug prints about unhandled IRP_MN_QUERY_PNP_DEVICE_STATE

svn path=/trunk/; revision=74267

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

index ee4d66d..ae01b16 100644 (file)
@@ -4126,7 +4126,10 @@ IoInvalidateDeviceState(IN PDEVICE_OBJECT PhysicalDeviceObject)
     Status = IopSynchronousCall(PhysicalDeviceObject, &Stack, (PVOID*)&PnPFlags);
     if (!NT_SUCCESS(Status))
     {
-        DPRINT1("IRP_MN_QUERY_PNP_DEVICE_STATE failed with status 0x%x\n", Status);
+        if (Status != STATUS_NOT_SUPPORTED)
+        {
+            DPRINT1("IRP_MN_QUERY_PNP_DEVICE_STATE failed with status 0x%lx\n", Status);
+        }
         return;
     }