public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] NetworkPkg/IScsiDxe: add debug logs for failed SetVariable attempts
@ 2018-11-20 10:39 Vijayenthiran Subramaniam
  2018-11-20 11:10 ` Udit Kumar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vijayenthiran Subramaniam @ 2018-11-20 10:39 UTC (permalink / raw)
  To: edk2-devel, siyuan.fu, jiaxin.wu; +Cc: Vijayenthiran Subramaniam

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>
---
 NetworkPkg/IScsiDxe/IScsiMisc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c
index dd0d32dcda16..46760d79a8f3 100644
--- a/NetworkPkg/IScsiDxe/IScsiMisc.c
+++ b/NetworkPkg/IScsiDxe/IScsiMisc.c
@@ -845,6 +845,8 @@ IScsiCreateAttempts (
                     );
     FreePool (AttemptConfigOrder);
     if (EFI_ERROR (Status)) {
+      DEBUG ((DEBUG_ERROR, "%a: SetVariable failed with return: %r\n",
+        __FUNCTION__, Status));
       return Status;
     }
 
@@ -887,6 +889,8 @@ IScsiCreateAttempts (
                     );
     FreePool (AttemptConfigData);
     if (EFI_ERROR (Status)) {
+      DEBUG ((DEBUG_ERROR, "%a: SetVariable failed with return: %r\n",
+        __FUNCTION__, Status));
       return Status;
     }
   }
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-21  0:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-20 10:39 [PATCH] NetworkPkg/IScsiDxe: add debug logs for failed SetVariable attempts Vijayenthiran Subramaniam
2018-11-20 11:10 ` Udit Kumar
2018-11-20 11:14 ` Laszlo Ersek
2018-11-21  0:28 ` Fu, Siyuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox