diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-05 14:33:54 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | ed7f7c916840f1e2afff0c5a6fb1161737ad1941 (patch) | |
tree | 7ccb98cdd1ac43c922bd6500fe93cfd6e5e9701d /NetworkPkg/MnpDxe/MnpIo.c | |
parent | 098307e0826000332aec57211da2f32359ed5b24 (diff) | |
download | edk2-ed7f7c916840f1e2afff0c5a6fb1161737ad1941.tar.gz edk2-ed7f7c916840f1e2afff0c5a6fb1161737ad1941.tar.bz2 edk2-ed7f7c916840f1e2afff0c5a6fb1161737ad1941.zip |
NetworkPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3767
Update use of DEBUG_CODE(Expression) if Expression is a complex code
block with if/while/for/case statements that use {}.
Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Diffstat (limited to 'NetworkPkg/MnpDxe/MnpIo.c')
-rw-r--r-- | NetworkPkg/MnpDxe/MnpIo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NetworkPkg/MnpDxe/MnpIo.c b/NetworkPkg/MnpDxe/MnpIo.c index 1f8d2e2504..d5707ae26a 100644 --- a/NetworkPkg/MnpDxe/MnpIo.c +++ b/NetworkPkg/MnpDxe/MnpIo.c @@ -898,11 +898,11 @@ MnpReceivePacket ( //
Status = Snp->Receive (Snp, &HeaderSize, &BufLen, BufPtr, NULL, NULL, NULL);
if (EFI_ERROR (Status)) {
- DEBUG_CODE (
+ DEBUG_CODE_BEGIN ();
if (Status != EFI_NOT_READY) {
DEBUG ((DEBUG_WARN, "MnpReceivePacket: Snp->Receive() = %r.\n", Status));
}
- );
+ DEBUG_CODE_END ();
return Status;
}
|