From 975f584df9a6252f0694c70ef7974e360c8fc84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 11 Sep 2005 09:23:16 +0000 Subject: [PATCH] Display debug error message only when action fails svn path=/trunk/; revision=17794 --- reactos/ntoskrnl/io/pnpmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr.c index efd80b64641..fb944ba85c2 100644 --- a/reactos/ntoskrnl/io/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr.c @@ -1329,9 +1329,9 @@ IopActionInterrogateDeviceStack( } Status = IopQueryDeviceCapabilities(DeviceNode, &DeviceCapabilities); - if (NT_SUCCESS(Status)) + if (!NT_SUCCESS(Status)) { - DPRINT("IopInitiatePnpIrp() failed (Status %x)\n", Status); + DPRINT("IopInitiatePnpIrp() failed (Status 0x%08lx)\n", Status); } DeviceNode->CapabilityFlags = *(PULONG)((ULONG_PTR)&DeviceCapabilities + 4);