Display debug error message only when action fails
Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c

Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c
--- trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-09-11 09:19:24 UTC (rev 17793)
+++ trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-09-11 09:23:16 UTC (rev 17794)
@@ -1329,9 +1329,9 @@
    }
 
    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);