https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fd9436d7680cb68dce384…
commit fd9436d7680cb68dce3841c7f161b82b4e1d0085
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Tue Dec 28 04:21:21 2021 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Tue Dec 28 04:23:51 2021 +0300
[NTOS:PNP] Remove excessive error messages
---
ntoskrnl/io/pnpmgr/devaction.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/io/pnpmgr/devaction.c b/ntoskrnl/io/pnpmgr/devaction.c
index c97f1fdd1c5..559fc087b0c 100644
--- a/ntoskrnl/io/pnpmgr/devaction.c
+++ b/ntoskrnl/io/pnpmgr/devaction.c
@@ -251,7 +251,10 @@ IopCreateDeviceInstancePath(
Status = IopQueryDeviceCapabilities(DeviceNode, &DeviceCapabilities);
if (!NT_SUCCESS(Status))
{
- DPRINT1("IopQueryDeviceCapabilities() failed (Status 0x%08lx)\n",
Status);
+ if (Status != STATUS_NOT_SUPPORTED)
+ {
+ DPRINT1("IopQueryDeviceCapabilities() failed (Status 0x%08lx)\n",
Status);
+ }
RtlFreeUnicodeString(&DeviceId);
return Status;
}