NetworkPkg: Change use of EFI_D_* to DEBUG_*
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines. 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:
committed by
mergify[bot]
parent
5f289f3ae3
commit
c49ca4a29e
@@ -40,7 +40,7 @@ MnpIsValidTxToken (
|
||||
// The token is invalid if the Event is NULL, or the TxData is NULL, or
|
||||
// the fragment count is zero.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxToken: Invalid Token.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpIsValidTxToken: Invalid Token.\n"));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ MnpIsValidTxToken (
|
||||
// The token is invalid if the HeaderLength isn't zero while the DestinationAddress
|
||||
// is NULL (The destination address is already put into the packet).
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxToken: DestinationAddress isn't NULL, HeaderLength must be 0.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpIsValidTxToken: DestinationAddress isn't NULL, HeaderLength must be 0.\n"));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ MnpIsValidTxToken (
|
||||
//
|
||||
// The token is invalid if any FragmentLength is zero or any FragmentBuffer is NULL.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxToken: Invalid FragmentLength or FragmentBuffer.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpIsValidTxToken: Invalid FragmentLength or FragmentBuffer.\n"));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ MnpIsValidTxToken (
|
||||
// The length calculated from the fragment information doesn't equal to the
|
||||
// sum of the DataLength and the HeaderLength.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxData: Invalid Datalength compared with the sum of fragment length.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpIsValidTxData: Invalid Datalength compared with the sum of fragment length.\n"));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ MnpIsValidTxToken (
|
||||
//
|
||||
// The total length is larger than the MTU.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "MnpIsValidTxData: TxData->DataLength exceeds Mtu.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpIsValidTxData: TxData->DataLength exceeds Mtu.\n"));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ MnpSyncSendPacket (
|
||||
//
|
||||
// Media not present, skip packet transmit and report EFI_NO_MEDIA
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "MnpSyncSendPacket: No network cable detected.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpSyncSendPacket: No network cable detected.\n"));
|
||||
Token->Status = EFI_NO_MEDIA;
|
||||
goto SIGNAL_TOKEN;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ MnpInstanceDeliverPacket (
|
||||
//
|
||||
DupNbuf = MnpAllocNbuf (MnpDeviceData);
|
||||
if (DupNbuf == NULL) {
|
||||
DEBUG ((EFI_D_WARN, "MnpDeliverPacket: Failed to allocate a free Nbuf.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpDeliverPacket: Failed to allocate a free Nbuf.\n"));
|
||||
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
@@ -488,7 +488,7 @@ MnpQueueRcvdPacket (
|
||||
//
|
||||
if (Instance->RcvdPacketQueueSize == MNP_MAX_RCVD_PACKET_QUE_SIZE) {
|
||||
|
||||
DEBUG ((EFI_D_WARN, "MnpQueueRcvdPacket: Drop one packet bcz queue size limit reached.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpQueueRcvdPacket: Drop one packet bcz queue size limit reached.\n"));
|
||||
|
||||
//
|
||||
// Get the oldest packet.
|
||||
@@ -724,7 +724,7 @@ MnpWrapRxData (
|
||||
//
|
||||
RxDataWrap = AllocatePool (sizeof (MNP_RXDATA_WRAP));
|
||||
if (RxDataWrap == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpDispatchPacket: Failed to allocate a MNP_RXDATA_WRAP.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpDispatchPacket: Failed to allocate a MNP_RXDATA_WRAP.\n"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -746,7 +746,7 @@ MnpWrapRxData (
|
||||
&RxDataWrap->RxData.RecycleEvent
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpDispatchPacket: gBS->CreateEvent failed, %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "MnpDispatchPacket: gBS->CreateEvent failed, %r.\n", Status));
|
||||
|
||||
FreePool (RxDataWrap);
|
||||
return NULL;
|
||||
@@ -900,7 +900,7 @@ MnpReceivePacket (
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG_CODE (
|
||||
if (Status != EFI_NOT_READY) {
|
||||
DEBUG ((EFI_D_WARN, "MnpReceivePacket: Snp->Receive() = %r.\n", Status));
|
||||
DEBUG ((DEBUG_WARN, "MnpReceivePacket: Snp->Receive() = %r.\n", Status));
|
||||
}
|
||||
);
|
||||
|
||||
@@ -912,7 +912,7 @@ MnpReceivePacket (
|
||||
//
|
||||
if ((HeaderSize != Snp->Mode->MediaHeaderSize) || (BufLen < HeaderSize)) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"MnpReceivePacket: Size error, HL:TL = %d:%d.\n",
|
||||
HeaderSize,
|
||||
BufLen)
|
||||
@@ -970,7 +970,7 @@ MnpReceivePacket (
|
||||
Nbuf = MnpAllocNbuf (MnpDeviceData);
|
||||
MnpDeviceData->RxNbufCache = Nbuf;
|
||||
if (Nbuf == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpReceivePacket: Alloc packet for receiving cache failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpReceivePacket: Alloc packet for receiving cache failed.\n"));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
@@ -1059,7 +1059,7 @@ MnpCheckPacketTimeout (
|
||||
//
|
||||
// Drop the timeout packet.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "MnpCheckPacketTimeout: Received packet timeout.\n"));
|
||||
DEBUG ((DEBUG_WARN, "MnpCheckPacketTimeout: Received packet timeout.\n"));
|
||||
MnpRecycleRxData (NULL, RxDataWrap);
|
||||
Instance->RcvdPacketQueueSize--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user