[FREELDR:NTLDR] Adjust some debug traces. RegOpenKey(): demote an ERR to WARN.

CORE-18040
This commit is contained in:
Hermès Bélusca-Maïto 2022-02-07 00:26:08 +01:00
parent f6a13d452c
commit 914f14a8b9
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -110,7 +110,7 @@ RegInitCurrentControlSet(
&SelectKey); &SelectKey);
if (Error != ERROR_SUCCESS) if (Error != ERROR_SUCCESS)
{ {
ERR("RegOpenKey() failed (Error %u)\n", (int)Error); ERR("RegOpenKey('SYSTEM\\Select') failed (Error %lu)\n", Error);
return Error; return Error;
} }
@ -122,7 +122,7 @@ RegInitCurrentControlSet(
&DataSize); &DataSize);
if (Error != ERROR_SUCCESS) if (Error != ERROR_SUCCESS)
{ {
ERR("RegQueryValue('Default') failed (Error %u)\n", (int)Error); ERR("RegQueryValue('Default') failed (Error %lu)\n", Error);
RegCloseKey(SelectKey); RegCloseKey(SelectKey);
return Error; return Error;
} }
@ -135,7 +135,7 @@ RegInitCurrentControlSet(
&DataSize); &DataSize);
if (Error != ERROR_SUCCESS) if (Error != ERROR_SUCCESS)
{ {
ERR("RegQueryValue('LastKnownGood') failed (Error %u)\n", (int)Error); ERR("RegQueryValue('LastKnownGood') failed (Error %lu)\n", Error);
RegCloseKey(SelectKey); RegCloseKey(SelectKey);
return Error; return Error;
} }
@ -168,7 +168,7 @@ RegInitCurrentControlSet(
&SystemKey); &SystemKey);
if (Error != ERROR_SUCCESS) if (Error != ERROR_SUCCESS)
{ {
ERR("RegOpenKey(SystemKey) failed (Error %lu)\n", Error); ERR("RegOpenKey('SYSTEM') failed (Error %lu)\n", Error);
return Error; return Error;
} }
@ -180,7 +180,7 @@ RegInitCurrentControlSet(
if (Error != ERROR_SUCCESS) if (Error != ERROR_SUCCESS)
{ {
ERR("RegOpenKey(CurrentControlSetKey) failed (Error %lu)\n", Error); ERR("RegOpenKey('%S') failed (Error %lu)\n", ControlSetKeyName, Error);
return Error; return Error;
} }
@ -391,7 +391,7 @@ RegOpenKey(
CellIndex = CmpFindSubKeyByName(Hive, KeyNode, &SubKeyName); CellIndex = CmpFindSubKeyByName(Hive, KeyNode, &SubKeyName);
if (CellIndex == HCELL_NIL) 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; return ERROR_PATH_NOT_FOUND;
} }