Add a message in case of error when loading/initializing driver

svn path=/trunk/; revision=27386
This commit is contained in:
Hervé Poussineau 2007-07-04 14:13:30 +00:00
parent 122331f605
commit 9c03ef676e
2 changed files with 42 additions and 32 deletions

View file

@ -290,7 +290,7 @@ NtCreateKey(OUT PHANDLE KeyHandle,
{
if (L'\\' == RemainingPath.Buffer[i])
{
DPRINT1("NtCreateKey() doesn't create trees! (found \'\\\' in remaining path: \"%wZ\"!)\n", &RemainingPath);
DPRINT("NtCreateKey() doesn't create trees! (found \'\\\' in remaining path: \"%wZ\"!)\n", &RemainingPath);
PostCreateKeyInfo.Object = NULL;
PostCreateKeyInfo.Status = STATUS_OBJECT_NAME_NOT_FOUND;

View file

@ -2397,6 +2397,11 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
Status = STATUS_SUCCESS;
}
}
else
{
DPRINT1("IopLoadServiceModule(%wZ) failed with status 0x%08x\n",
&DeviceNode->ServiceName, Status);
}
}
/* Driver is loaded and initialized at this point */
@ -2417,6 +2422,11 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
Status = IopStartDevice(DeviceNode);
}
else
{
DPRINT1("IopInitializeDevice(%wZ) failed with status 0x%08x\n",
&DeviceNode->InstancePath, Status);
}
}
else
{