|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Always log during SettingsRestore
- removes the logging skip if the Settings key is not present
- logs if the interface guid doesnt change
Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx>
---
src/xenvif/settings.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/xenvif/settings.c b/src/xenvif/settings.c
index dd3c991..4dd4ec4 100644
--- a/src/xenvif/settings.c
+++ b/src/xenvif/settings.c
@@ -622,12 +622,8 @@ SettingsRestore(
SubKeyName,
KEY_READ,
&SubKey);
- if (!NT_SUCCESS(status)) {
- if (status == STATUS_OBJECT_NAME_NOT_FOUND)
- goto done;
-
+ if (!NT_SUCCESS(status))
goto fail1;
- }
status = RegistryQuerySzValue(SubKey,
"NetCfgInstanceId",
@@ -658,6 +654,10 @@ SettingsRestore(
NetLuid,
&Ansi,
InterfaceLuid);
+ } else {
+ Info("%s: SettingsCopy not required for %ws\n",
+ SubKeyName,
+ Description);
}
RtlFreeAnsiString(&Ansi);
@@ -669,7 +669,6 @@ SettingsRestore(
RegistryCloseKey(SubKey);
-done:
return STATUS_SUCCESS;
fail4:
--
2.39.0.windows.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |