diff options
author | Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com> | 2018-11-21 23:35:59 +0800 |
---|---|---|
committer | Fu Siyuan <siyuan.fu@intel.com> | 2018-11-23 14:27:11 +0800 |
commit | a2481def5da4287570d1a3ed7fe63f737aaf89e8 (patch) | |
tree | 557c9c68c87351dc5eaf2d63f06acb343aa7bc50 /NetworkPkg/IScsiDxe | |
parent | 59e323822f874aaa3db6b583b5be11636da214f0 (diff) | |
download | edk2-a2481def5da4287570d1a3ed7fe63f737aaf89e8.zip edk2-a2481def5da4287570d1a3ed7fe63f737aaf89e8.tar.gz edk2-a2481def5da4287570d1a3ed7fe63f737aaf89e8.tar.bz2 |
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>
Diffstat (limited to 'NetworkPkg/IScsiDxe')
-rw-r--r-- | NetworkPkg/IScsiDxe/IScsiMisc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c index dd0d32d..7bed95a 100644 --- a/NetworkPkg/IScsiDxe/IScsiMisc.c +++ b/NetworkPkg/IScsiDxe/IScsiMisc.c @@ -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;
}
}
|