mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
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
@ -304,12 +304,12 @@ RESTART_RECEIVE:
|
|||||||
//
|
//
|
||||||
Status = ArpService->Mnp->Receive (ArpService->Mnp, RxToken);
|
Status = ArpService->Mnp->Receive (ArpService->Mnp, RxToken);
|
||||||
|
|
||||||
DEBUG_CODE (
|
DEBUG_CODE_BEGIN ();
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "ArpOnFrameRcvd: ArpService->Mnp->Receive "
|
DEBUG ((DEBUG_ERROR, "ArpOnFrameRcvd: ArpService->Mnp->Receive "
|
||||||
"failed, %r\n.", Status));
|
"failed, %r\n.", Status));
|
||||||
}
|
}
|
||||||
);
|
DEBUG_CODE_END ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -358,11 +358,11 @@ ArpOnFrameSentDpc (
|
|||||||
TxToken = (EFI_MANAGED_NETWORK_COMPLETION_TOKEN *)Context;
|
TxToken = (EFI_MANAGED_NETWORK_COMPLETION_TOKEN *)Context;
|
||||||
TxData = TxToken->Packet.TxData;
|
TxData = TxToken->Packet.TxData;
|
||||||
|
|
||||||
DEBUG_CODE (
|
DEBUG_CODE_BEGIN ();
|
||||||
if (EFI_ERROR (TxToken->Status)) {
|
if (EFI_ERROR (TxToken->Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "ArpOnFrameSent: TxToken->Status, %r.\n", TxToken->Status));
|
DEBUG ((DEBUG_ERROR, "ArpOnFrameSent: TxToken->Status, %r.\n", TxToken->Status));
|
||||||
}
|
}
|
||||||
);
|
DEBUG_CODE_END ();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Free the allocated memory and close the event.
|
// Free the allocated memory and close the event.
|
||||||
|
@ -1669,7 +1669,7 @@ MnpConfigReceiveFilters (
|
|||||||
MCastFilterCnt,
|
MCastFilterCnt,
|
||||||
MCastFilter
|
MCastFilter
|
||||||
);
|
);
|
||||||
DEBUG_CODE (
|
DEBUG_CODE_BEGIN ();
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG (
|
DEBUG (
|
||||||
(DEBUG_ERROR,
|
(DEBUG_ERROR,
|
||||||
@ -1677,7 +1677,7 @@ MnpConfigReceiveFilters (
|
|||||||
Status)
|
Status)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
DEBUG_CODE_END ();
|
||||||
|
|
||||||
if (MCastFilter != NULL) {
|
if (MCastFilter != NULL) {
|
||||||
//
|
//
|
||||||
|
@ -898,11 +898,11 @@ MnpReceivePacket (
|
|||||||
//
|
//
|
||||||
Status = Snp->Receive (Snp, &HeaderSize, &BufLen, BufPtr, NULL, NULL, NULL);
|
Status = Snp->Receive (Snp, &HeaderSize, &BufLen, BufPtr, NULL, NULL, NULL);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG_CODE (
|
DEBUG_CODE_BEGIN ();
|
||||||
if (Status != EFI_NOT_READY) {
|
if (Status != EFI_NOT_READY) {
|
||||||
DEBUG ((DEBUG_WARN, "MnpReceivePacket: Snp->Receive() = %r.\n", Status));
|
DEBUG ((DEBUG_WARN, "MnpReceivePacket: Snp->Receive() = %r.\n", Status));
|
||||||
}
|
}
|
||||||
);
|
DEBUG_CODE_END ();
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user