Skip to content

Commit

Permalink
NetworkPkg/IScsiDxe: add debug logs for failed SetVariable attempts
Browse files Browse the repository at this point in the history
Add debug messages for failed attempts to write to a variable.

Cc: Siyuan Fu <[email protected]>
Cc: Jiaxin Wu <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Vijayenthiran Subramaniam <[email protected]>
Reviewed-by: Siyuan Fu <[email protected]>
  • Loading branch information
vijayenthiran-arm authored and sfu5 committed Nov 23, 2018
1 parent 59e3238 commit a2481de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NetworkPkg/IScsiDxe/IScsiMisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit a2481de

Please sign in to comment.