mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 12:44:50 +02:00
NetworkPkg/IScsiDxe: add debug logs for failed SetVariable attempts
Add debug messages for failed attempts to write to a variable. Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com> Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
This commit is contained in:
parent
59e323822f
commit
a2481def5d
@ -845,6 +845,10 @@ IScsiCreateAttempts (
|
|||||||
);
|
);
|
||||||
FreePool (AttemptConfigOrder);
|
FreePool (AttemptConfigOrder);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
DEBUG ((DEBUG_ERROR,
|
||||||
|
"%a: Failed to set 'InitialAttemptOrder' with Guid (%g): "
|
||||||
|
"%r\n",
|
||||||
|
__FUNCTION__, &gIScsiConfigGuid, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -887,6 +891,10 @@ IScsiCreateAttempts (
|
|||||||
);
|
);
|
||||||
FreePool (AttemptConfigData);
|
FreePool (AttemptConfigData);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
DEBUG ((DEBUG_ERROR,
|
||||||
|
"%a: Failed to set variable (mPrivate->PortString) with Guid (%g): "
|
||||||
|
"%r\n",
|
||||||
|
__FUNCTION__, &gEfiIScsiInitiatorNameProtocolGuid, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user