mirror of https://github.com/acidanthera/audk.git
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);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR,
|
||||
"%a: Failed to set 'InitialAttemptOrder' with Guid (%g): "
|
||||
"%r\n",
|
||||
__FUNCTION__, &gIScsiConfigGuid, Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -887,6 +891,10 @@ IScsiCreateAttempts (
|
|||
);
|
||||
FreePool (AttemptConfigData);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR,
|
||||
"%a: Failed to set variable (mPrivate->PortString) with Guid (%g): "
|
||||
"%r\n",
|
||||
__FUNCTION__, &gEfiIScsiInitiatorNameProtocolGuid, Status));
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue