Display an error message only if we're not in the "load only boot drivers" phase
authorHervé Poussineau <hpoussin@reactos.org>
Sun, 4 Jun 2006 16:30:27 +0000 (16:30 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sun, 4 Jun 2006 16:30:27 +0000 (16:30 +0000)
svn path=/trunk/; revision=22212

reactos/ntoskrnl/io/pnpmgr.c

index d3eb0a6..7863df2 100644 (file)
@@ -2090,10 +2090,10 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
          {
             IopDeviceNodeSetFlag(DeviceNode, DNF_DISABLED);
             IopDeviceNodeSetFlag(DeviceNode, DNF_START_FAILED);
+            /* FIXME: Log the error (possibly in IopInitializeDeviceNodeService) */
+            CPRINT("Initialization of service %S failed (Status %x)\n",
+              DeviceNode->ServiceName.Buffer, Status);
          }
-         /* FIXME: Log the error (possibly in IopInitializeDeviceNodeService) */
-         CPRINT("Initialization of service %S failed (Status %x)\n",
-           DeviceNode->ServiceName.Buffer, Status);
       }
    } else
    {