mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
098307e082
commit
ed7f7c9168
NetworkPkg
|
@ -304,12 +304,12 @@ RESTART_RECEIVE:
|
|||
//
|
||||
Status = ArpService->Mnp->Receive (ArpService->Mnp, RxToken);
|
||||
|
||||
DEBUG_CODE (
|
||||
DEBUG_CODE_BEGIN ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "ArpOnFrameRcvd: ArpService->Mnp->Receive "
|
||||
"failed, %r\n.", Status));
|
||||
}
|
||||
);
|
||||
DEBUG_CODE_END ();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -358,11 +358,11 @@ ArpOnFrameSentDpc (
|
|||
TxToken = (EFI_MANAGED_NETWORK_COMPLETION_TOKEN *)Context;
|
||||
TxData = TxToken->Packet.TxData;
|
||||
|
||||
DEBUG_CODE (
|
||||
DEBUG_CODE_BEGIN ();
|
||||
if (EFI_ERROR (TxToken->Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "ArpOnFrameSent: TxToken->Status, %r.\n", TxToken->Status));
|
||||
}
|
||||
);
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
//
|
||||
// Free the allocated memory and close the event.
|
||||
|
|
|
@ -1669,7 +1669,7 @@ MnpConfigReceiveFilters (
|
|||
MCastFilterCnt,
|
||||
MCastFilter
|
||||
);
|
||||
DEBUG_CODE (
|
||||
DEBUG_CODE_BEGIN ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(DEBUG_ERROR,
|
||||
|
@ -1677,7 +1677,7 @@ MnpConfigReceiveFilters (
|
|||
Status)
|
||||
);
|
||||
}
|
||||
);
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
if (MCastFilter != NULL) {
|
||||
//
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue