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:
Vijayenthiran Subramaniam 2018-11-21 23:35:59 +08:00 committed by Fu Siyuan
parent 59e323822f
commit a2481def5d
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}
}