https://git.reactos.org/?p=reactos.git;a=commitdiff;h=914f14a8b9dbe2ed670ee…
commit 914f14a8b9dbe2ed670ee1dd6c8299fa0c63ffd4
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Mon Feb 7 00:26:08 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Feb 7 00:26:30 2022 +0100
[FREELDR:NTLDR] Adjust some debug traces. RegOpenKey(): demote an ERR to WARN.
CORE-18040
---
boot/freeldr/freeldr/ntldr/registry.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/boot/freeldr/freeldr/ntldr/registry.c
b/boot/freeldr/freeldr/ntldr/registry.c
index 07438b52423..3db27582935 100644
--- a/boot/freeldr/freeldr/ntldr/registry.c
+++ b/boot/freeldr/freeldr/ntldr/registry.c
@@ -110,7 +110,7 @@ RegInitCurrentControlSet(
&SelectKey);
if (Error != ERROR_SUCCESS)
{
- ERR("RegOpenKey() failed (Error %u)\n", (int)Error);
+ ERR("RegOpenKey('SYSTEM\\Select') failed (Error %lu)\n",
Error);
return Error;
}
@@ -122,7 +122,7 @@ RegInitCurrentControlSet(
&DataSize);
if (Error != ERROR_SUCCESS)
{
- ERR("RegQueryValue('Default') failed (Error %u)\n",
(int)Error);
+ ERR("RegQueryValue('Default') failed (Error %lu)\n", Error);
RegCloseKey(SelectKey);
return Error;
}
@@ -135,7 +135,7 @@ RegInitCurrentControlSet(
&DataSize);
if (Error != ERROR_SUCCESS)
{
- ERR("RegQueryValue('LastKnownGood') failed (Error %u)\n",
(int)Error);
+ ERR("RegQueryValue('LastKnownGood') failed (Error %lu)\n",
Error);
RegCloseKey(SelectKey);
return Error;
}
@@ -168,7 +168,7 @@ RegInitCurrentControlSet(
&SystemKey);
if (Error != ERROR_SUCCESS)
{
- ERR("RegOpenKey(SystemKey) failed (Error %lu)\n", Error);
+ ERR("RegOpenKey('SYSTEM') failed (Error %lu)\n", Error);
return Error;
}
@@ -180,7 +180,7 @@ RegInitCurrentControlSet(
if (Error != ERROR_SUCCESS)
{
- ERR("RegOpenKey(CurrentControlSetKey) failed (Error %lu)\n", Error);
+ ERR("RegOpenKey('%S') failed (Error %lu)\n", ControlSetKeyName,
Error);
return Error;
}
@@ -391,7 +391,7 @@ RegOpenKey(
CellIndex = CmpFindSubKeyByName(Hive, KeyNode, &SubKeyName);
if (CellIndex == HCELL_NIL)
{
- ERR("Did not find sub key '%wZ' (full %S)\n",
&SubKeyName, KeyName);
+ WARN("Did not find sub key '%wZ' (full: %S)\n",
&SubKeyName, KeyName);
return ERROR_PATH_NOT_FOUND;
}