DPRINT->DPRINT1 in key places (when something fails we shouldn't keep
silence).
Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c
_____
Modified: trunk/reactos/ntoskrnl/cm/ntfunc.c
--- trunk/reactos/ntoskrnl/cm/ntfunc.c 2005-12-09 19:00:13 UTC (rev
20015)
+++ trunk/reactos/ntoskrnl/cm/ntfunc.c 2005-12-09 19:28:04 UTC (rev
20016)
@@ -246,7 +246,7 @@
&ObjectName);
if (!NT_SUCCESS(Status))
{
- DPRINT("ObpCaptureObjectAttributes() failed (Status %lx)\n",
Status);
+ DPRINT1("ObpCaptureObjectAttributes() failed (Status %lx)\n",
Status);
goto Cleanup;
}
@@ -271,7 +271,7 @@
PostCreateKeyInfo.Status = Status;
CmiCallRegisteredCallbacks(RegNtPostCreateKey,
&PostCreateKeyInfo);
- DPRINT("CmpFindObject failed, Status: 0x%x\n", Status);
+ DPRINT1("CmpFindObject failed, Status: 0x%x\n", Status);
goto Cleanup;
}
@@ -286,7 +286,7 @@
PostCreateKeyInfo.Status = STATUS_UNSUCCESSFUL;
CmiCallRegisteredCallbacks(RegNtPostCreateKey,
&PostCreateKeyInfo);
- DPRINT("Object marked for delete!\n");
+ DPRINT1("Object marked for delete!\n");
Status = STATUS_UNSUCCESSFUL;
goto Cleanup;
}
@@ -297,7 +297,8 @@
TRUE,
&hKey);
- DPRINT("ObpCreateHandle failed Status 0x%x\n", Status);
+ if (!NT_SUCCESS(Status))
+ DPRINT1("ObpCreateHandle failed Status 0x%x\n", Status);
PostCreateKeyInfo.Object = NULL;
PostCreateKeyInfo.Status = Status;
@@ -395,7 +396,7 @@
CreateOptions);
if (!NT_SUCCESS(Status))
{
- DPRINT("CmiAddSubKey() failed (Status %lx)\n", Status);
+ DPRINT1("CmiAddSubKey() failed (Status %lx)\n", Status);
/* Release hive lock */
ExReleaseResourceLite(&CmiRegistryLock);
KeLeaveCriticalRegion();
Show replies by date