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:
parent
5f289f3ae3
commit
c49ca4a29e
|
@ -492,7 +492,7 @@ ArpDriverBindingStop (
|
|||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpDriverBindingStop: Open ArpSb failed, %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "ArpDriverBindingStop: Open ArpSb failed, %r.\n", Status));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
|
@ -578,7 +578,7 @@ ArpServiceBindingCreateChild (
|
|||
//
|
||||
Instance = AllocateZeroPool (sizeof(ARP_INSTANCE_DATA));
|
||||
if (Instance == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpSBCreateChild: Failed to allocate memory for Instance.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpSBCreateChild: Failed to allocate memory for Instance.\n"));
|
||||
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
@ -746,7 +746,7 @@ ArpServiceBindingDestroyChild (
|
|||
NULL
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpSBDestroyChild: Failed to uninstall the arp protocol, %r.\n",
|
||||
DEBUG ((DEBUG_ERROR, "ArpSBDestroyChild: Failed to uninstall the arp protocol, %r.\n",
|
||||
Status));
|
||||
|
||||
Instance->InDestroy = FALSE;
|
||||
|
@ -808,4 +808,3 @@ ArpDriverEntryPoint (
|
|||
&gArpComponentName2
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -306,7 +306,7 @@ RESTART_RECEIVE:
|
|||
|
||||
DEBUG_CODE (
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpOnFrameRcvd: ArpService->Mnp->Receive "
|
||||
DEBUG ((DEBUG_ERROR, "ArpOnFrameRcvd: ArpService->Mnp->Receive "
|
||||
"failed, %r\n.", Status));
|
||||
}
|
||||
);
|
||||
|
@ -360,7 +360,7 @@ ArpOnFrameSentDpc (
|
|||
|
||||
DEBUG_CODE (
|
||||
if (EFI_ERROR (TxToken->Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpOnFrameSent: TxToken->Status, %r.\n", TxToken->Status));
|
||||
DEBUG ((DEBUG_ERROR, "ArpOnFrameSent: TxToken->Status, %r.\n", TxToken->Status));
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -952,7 +952,7 @@ ArpConfigureInstance (
|
|||
|
||||
OldConfigData->StationAddress = AllocatePool (OldConfigData->SwAddressLength);
|
||||
if (OldConfigData->StationAddress == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpConfigInstance: AllocatePool for the StationAddress "
|
||||
DEBUG ((DEBUG_ERROR, "ArpConfigInstance: AllocatePool for the StationAddress "
|
||||
"failed.\n"));
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
@ -1044,7 +1044,7 @@ ArpSendFrame (
|
|||
//
|
||||
TxToken = AllocatePool (sizeof(EFI_MANAGED_NETWORK_COMPLETION_TOKEN));
|
||||
if (TxToken == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: Allocate memory for TxToken failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpSendFrame: Allocate memory for TxToken failed.\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1063,7 +1063,7 @@ ArpSendFrame (
|
|||
&TxToken->Event
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: CreateEvent failed for TxToken->Event.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpSendFrame: CreateEvent failed for TxToken->Event.\n"));
|
||||
goto CLEAN_EXIT;
|
||||
}
|
||||
|
||||
|
@ -1072,7 +1072,7 @@ ArpSendFrame (
|
|||
//
|
||||
TxData = AllocatePool (sizeof(EFI_MANAGED_NETWORK_TRANSMIT_DATA));
|
||||
if (TxData == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: Allocate memory for TxData failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpSendFrame: Allocate memory for TxData failed.\n"));
|
||||
goto CLEAN_EXIT;
|
||||
}
|
||||
|
||||
|
@ -1091,7 +1091,7 @@ ArpSendFrame (
|
|||
//
|
||||
Packet = AllocatePool (TotalLength);
|
||||
if (Packet == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpSendFrame: Allocate memory for Packet failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpSendFrame: Allocate memory for Packet failed.\n"));
|
||||
ASSERT (Packet != NULL);
|
||||
}
|
||||
|
||||
|
@ -1189,7 +1189,7 @@ ArpSendFrame (
|
|||
//
|
||||
Status = ArpService->Mnp->Transmit (ArpService->Mnp, TxToken);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Mnp->Transmit failed, %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Mnp->Transmit failed, %r.\n", Status));
|
||||
goto CLEAN_EXIT;
|
||||
}
|
||||
|
||||
|
@ -1604,7 +1604,7 @@ ArpFindCacheEntry (
|
|||
//
|
||||
FindData = AllocatePool (FoundCount * FoundEntryLength);
|
||||
if (FindData == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpFindCacheEntry: Failed to allocate memory.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpFindCacheEntry: Failed to allocate memory.\n"));
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto CLEAN_EXIT;
|
||||
}
|
||||
|
@ -1664,4 +1664,3 @@ CLEAN_EXIT:
|
|||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ ArpAdd (
|
|||
CacheEntry = ArpAllocCacheEntry (Instance);
|
||||
|
||||
if (CacheEntry == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpAdd: Failed to allocate pool for CacheEntry.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpAdd: Failed to allocate pool for CacheEntry.\n"));
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto UNLOCK_EXIT;
|
||||
}
|
||||
|
@ -590,7 +590,7 @@ ArpRequest (
|
|||
//
|
||||
RequestContext = AllocatePool (sizeof(USER_REQUEST_CONTEXT));
|
||||
if (RequestContext == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpRequest: Allocate memory for RequestContext failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpRequest: Allocate memory for RequestContext failed.\n"));
|
||||
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto UNLOCK_EXIT;
|
||||
|
@ -621,7 +621,7 @@ ArpRequest (
|
|||
//
|
||||
CacheEntry = ArpAllocCacheEntry (Instance);
|
||||
if (CacheEntry == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "ArpRequest: Allocate memory for CacheEntry failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "ArpRequest: Allocate memory for CacheEntry failed.\n"));
|
||||
FreePool (RequestContext);
|
||||
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
|
|
|
@ -231,7 +231,7 @@ HttpBootDhcp4ExtractUriInfo (
|
|||
//
|
||||
Status = HttpBootCheckUriScheme (Private->BootFileUri);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpBootDhcp4ExtractUriInfo: %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpBootDhcp4ExtractUriInfo: %r.\n", Status));
|
||||
if (Status == EFI_INVALID_PARAMETER) {
|
||||
AsciiPrint ("\n Error: Invalid URI address.\n");
|
||||
} else if (Status == EFI_ACCESS_DENIED) {
|
||||
|
@ -371,7 +371,7 @@ HttpBootDhcp6ExtractUriInfo (
|
|||
//
|
||||
Status = HttpBootCheckUriScheme (Private->BootFileUri);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpBootDhcp6ExtractUriInfo: %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpBootDhcp6ExtractUriInfo: %r.\n", Status));
|
||||
if (Status == EFI_INVALID_PARAMETER) {
|
||||
AsciiPrint ("\n Error: Invalid URI address.\n");
|
||||
} else if (Status == EFI_ACCESS_DENIED) {
|
||||
|
@ -1309,4 +1309,3 @@ ERROR_1:
|
|||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -489,7 +489,7 @@ HttpBootFormCallback (
|
|||
|
||||
if (Status == EFI_INVALID_PARAMETER) {
|
||||
|
||||
DEBUG ((EFI_D_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
||||
|
||||
CreatePopUp (
|
||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||
|
@ -500,7 +500,7 @@ HttpBootFormCallback (
|
|||
);
|
||||
} else if (Status == EFI_ACCESS_DENIED) {
|
||||
|
||||
DEBUG ((EFI_D_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpBootFormCallback: %r.\n", Status));
|
||||
|
||||
CreatePopUp (
|
||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||
|
|
|
@ -528,7 +528,7 @@ HttpBootCheckUriScheme (
|
|||
// Return EFI_INVALID_PARAMETER if the URI is not HTTP or HTTPS.
|
||||
//
|
||||
if ((AsciiStrnCmp (Uri, "http://", 7) != 0) && (AsciiStrnCmp (Uri, "https://", 8) != 0)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpBootCheckUriScheme: Invalid Uri.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "HttpBootCheckUriScheme: Invalid Uri.\n"));
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
@ -536,7 +536,7 @@ HttpBootCheckUriScheme (
|
|||
// HTTP is disabled, return EFI_ACCESS_DENIED if the URI is HTTP.
|
||||
//
|
||||
if (!PcdGetBool (PcdAllowHttpConnections) && (AsciiStrnCmp (Uri, "http://", 7) == 0)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpBootCheckUriScheme: HTTP is disabled.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "HttpBootCheckUriScheme: HTTP is disabled.\n"));
|
||||
return EFI_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
|
@ -729,7 +729,7 @@ HttpBootRegisterRamDisk (
|
|||
|
||||
Status = gBS->LocateProtocol (&gEfiRamDiskProtocolGuid, NULL, (VOID**) &RamDisk);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HTTP Boot: Couldn't find the RAM Disk protocol - %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HTTP Boot: Couldn't find the RAM Disk protocol - %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -749,7 +749,7 @@ HttpBootRegisterRamDisk (
|
|||
&DevicePath
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HTTP Boot: Failed to register RAM Disk - %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HTTP Boot: Failed to register RAM Disk - %r\n", Status));
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
|
|
@ -362,7 +362,7 @@ EfiHttpRequest (
|
|||
//
|
||||
if (!PcdGetBool (PcdAllowHttpConnections) && !(HttpInstance->UseHttps)) {
|
||||
|
||||
DEBUG ((EFI_D_ERROR, "EfiHttpRequest: HTTP is disabled.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "EfiHttpRequest: HTTP is disabled.\n"));
|
||||
|
||||
return EFI_ACCESS_DENIED;
|
||||
}
|
||||
|
@ -531,7 +531,7 @@ EfiHttpRequest (
|
|||
|
||||
FreePool (HostNameStr);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Error: Could not retrieve the host address from DNS server.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "Error: Could not retrieve the host address from DNS server.\n"));
|
||||
goto Error1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -145,7 +145,7 @@ HttpTcpReceiveNotifyDpc (
|
|||
Wrap->TcpWrap.Rx6Token.CompletionToken.Event = NULL;
|
||||
|
||||
if (EFI_ERROR (Wrap->TcpWrap.Rx6Token.CompletionToken.Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx6Token.CompletionToken.Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx6Token.CompletionToken.Status));
|
||||
Wrap->HttpToken->Status = Wrap->TcpWrap.Rx6Token.CompletionToken.Status;
|
||||
gBS->SignalEvent (Wrap->HttpToken->Event);
|
||||
|
||||
|
@ -165,7 +165,7 @@ HttpTcpReceiveNotifyDpc (
|
|||
Wrap->TcpWrap.Rx4Token.CompletionToken.Event = NULL;
|
||||
|
||||
if (EFI_ERROR (Wrap->TcpWrap.Rx4Token.CompletionToken.Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx4Token.CompletionToken.Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx4Token.CompletionToken.Status));
|
||||
Wrap->HttpToken->Status = Wrap->TcpWrap.Rx4Token.CompletionToken.Status;
|
||||
gBS->SignalEvent (Wrap->HttpToken->Event);
|
||||
|
||||
|
@ -968,7 +968,7 @@ HttpCreateConnection (
|
|||
Status = HttpInstance->Tcp4->Connect (HttpInstance->Tcp4, &HttpInstance->Tcp4ConnToken);
|
||||
HttpNotify (HttpEventConnectTcp, Status);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpCreateConnection: Tcp4->Connect() = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpCreateConnection: Tcp4->Connect() = %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -984,7 +984,7 @@ HttpCreateConnection (
|
|||
Status = HttpInstance->Tcp6->Connect (HttpInstance->Tcp6, &HttpInstance->Tcp6ConnToken);
|
||||
HttpNotify (HttpEventConnectTcp, Status);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpCreateConnection: Tcp6->Connect() = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpCreateConnection: Tcp6->Connect() = %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1109,7 +1109,7 @@ HttpConfigureTcp4 (
|
|||
|
||||
Status = HttpInstance->Tcp4->Configure (HttpInstance->Tcp4, Tcp4CfgData);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpConfigureTcp4 - %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpConfigureTcp4 - %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1179,7 +1179,7 @@ HttpConfigureTcp6 (
|
|||
|
||||
Status = HttpInstance->Tcp6->Configure (HttpInstance->Tcp6, Tcp6CfgData);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "HttpConfigureTcp6 - %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "HttpConfigureTcp6 - %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1232,7 +1232,7 @@ HttpConnectTcp4 (
|
|||
NULL
|
||||
);
|
||||
if (EFI_ERROR(Status)){
|
||||
DEBUG ((EFI_D_ERROR, "Tcp4 GetModeData fail - %x\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp4 GetModeData fail - %x\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1244,7 +1244,7 @@ HttpConnectTcp4 (
|
|||
|
||||
Status = HttpCreateConnection (HttpInstance);
|
||||
if (EFI_ERROR(Status)){
|
||||
DEBUG ((EFI_D_ERROR, "Tcp4 Connection fail - %x\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp4 Connection fail - %x\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1325,7 +1325,7 @@ HttpConnectTcp6 (
|
|||
);
|
||||
|
||||
if (EFI_ERROR(Status)){
|
||||
DEBUG ((EFI_D_ERROR, "Tcp6 GetModeData fail - %x\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp6 GetModeData fail - %x\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1337,7 +1337,7 @@ HttpConnectTcp6 (
|
|||
|
||||
Status = HttpCreateConnection (HttpInstance);
|
||||
if (EFI_ERROR(Status)){
|
||||
DEBUG ((EFI_D_ERROR, "Tcp6 Connection fail - %x\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp6 Connection fail - %x\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1587,7 +1587,7 @@ HttpTransmitTcp (
|
|||
Wrap->TcpWrap.IsTxDone = FALSE;
|
||||
Status = Tcp4->Transmit (Tcp4, Tx4Token);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Transmit failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Transmit failed: %r\n", Status));
|
||||
goto ON_ERROR;
|
||||
}
|
||||
|
||||
|
@ -1610,7 +1610,7 @@ HttpTransmitTcp (
|
|||
Wrap->TcpWrap.IsTxDone = FALSE;
|
||||
Status = Tcp6->Transmit (Tcp6, Tx6Token);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Transmit failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Transmit failed: %r\n", Status));
|
||||
goto ON_ERROR;
|
||||
}
|
||||
}
|
||||
|
@ -1875,7 +1875,7 @@ HttpTcpReceiveHeader (
|
|||
Rx4Token->Packet.RxData->FragmentTable[0].FragmentLength = DEF_BUF_LEN;
|
||||
Status = Tcp4->Receive (Tcp4, Rx4Token);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1907,7 +1907,7 @@ HttpTcpReceiveHeader (
|
|||
|
||||
Status = HttpsReceive (HttpInstance, &Fragment, Timeout);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
@ -1975,7 +1975,7 @@ HttpTcpReceiveHeader (
|
|||
Rx6Token->Packet.RxData->FragmentTable[0].FragmentLength = DEF_BUF_LEN;
|
||||
Status = Tcp6->Receive (Tcp6, Rx6Token);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -2007,7 +2007,7 @@ HttpTcpReceiveHeader (
|
|||
|
||||
Status = HttpsReceive (HttpInstance, &Fragment, Timeout);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
@ -2111,7 +2111,7 @@ HttpTcpReceiveBody (
|
|||
|
||||
Status = Tcp6->Receive (Tcp6, Rx6Token);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp6 receive failed: %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
} else {
|
||||
|
@ -2123,7 +2123,7 @@ HttpTcpReceiveBody (
|
|||
Rx4Token->CompletionToken.Status = EFI_NOT_READY;
|
||||
Status = Tcp4->Receive (Tcp4, Rx4Token);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Tcp4 receive failed: %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -680,7 +680,7 @@ TlsConfigureSession (
|
|||
//
|
||||
Status = TlsConfigCipherList (HttpInstance);
|
||||
if (EFI_ERROR (Status) && Status != EFI_NOT_FOUND) {
|
||||
DEBUG ((EFI_D_ERROR, "TlsConfigCipherList: return %r error.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "TlsConfigCipherList: return %r error.\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -689,7 +689,7 @@ TlsConfigureSession (
|
|||
//
|
||||
Status = TlsConfigCertificate (HttpInstance);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "TLS Certificate Config Error!\n"));
|
||||
DEBUG ((DEBUG_ERROR, "TLS Certificate Config Error!\n"));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -1874,7 +1874,7 @@ HttpsReceive (
|
|||
FreePool (GetSessionDataBuffer);
|
||||
|
||||
if(HttpInstance->TlsSessionState == EfiTlsSessionError) {
|
||||
DEBUG ((EFI_D_ERROR, "TLS Session State Error!\n"));
|
||||
DEBUG ((DEBUG_ERROR, "TLS Session State Error!\n"));
|
||||
return EFI_ABORTED;
|
||||
}
|
||||
|
||||
|
@ -1887,4 +1887,3 @@ HttpsReceive (
|
|||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -260,7 +260,7 @@ IScsiCreateConnection (
|
|||
}
|
||||
|
||||
if (EFI_ERROR(Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "The configuration of Target address or DNS server address is invalid!\n"));
|
||||
DEBUG ((DEBUG_ERROR, "The configuration of Target address or DNS server address is invalid!\n"));
|
||||
FreePool (Conn);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -591,7 +591,7 @@ Ip6DriverBindingStart (
|
|||
0,
|
||||
NULL
|
||||
);
|
||||
DEBUG ((EFI_D_WARN, "Ip6DriverBindingStart: Clean the invalid ManualAddress configuration.\n"));
|
||||
DEBUG ((DEBUG_WARN, "Ip6DriverBindingStart: Clean the invalid ManualAddress configuration.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -616,7 +616,7 @@ Ip6DriverBindingStart (
|
|||
0,
|
||||
NULL
|
||||
);
|
||||
DEBUG ((EFI_D_WARN, "Ip6DriverBindingStart: Clean the invalid Gateway configuration.\n"));
|
||||
DEBUG ((DEBUG_WARN, "Ip6DriverBindingStart: Clean the invalid Gateway configuration.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ MnpAddFreeNbuf (
|
|||
for (Index = 0; Index < Count; Index++) {
|
||||
Nbuf = NetbufAlloc (MnpDeviceData->BufferLength + MnpDeviceData->PaddingSize);
|
||||
if (Nbuf == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpAddFreeNbuf: NetBufAlloc failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpAddFreeNbuf: NetBufAlloc failed.\n"));
|
||||
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
break;
|
||||
|
@ -121,7 +121,7 @@ MnpAllocNbuf (
|
|||
if (FreeNbufQue->BufNum == 0) {
|
||||
if ((MnpDeviceData->NbufCnt + MNP_NET_BUFFER_INCREASEMENT) > MNP_MAX_NET_BUFFER_NUM) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpAllocNbuf: The maximum NET_BUF size is reached for MNP driver instance %p.\n",
|
||||
MnpDeviceData)
|
||||
);
|
||||
|
@ -133,7 +133,7 @@ MnpAllocNbuf (
|
|||
Status = MnpAddFreeNbuf (MnpDeviceData, MNP_NET_BUFFER_INCREASEMENT);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpAllocNbuf: Failed to add NET_BUFs into the FreeNbufQue, %r.\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -230,12 +230,12 @@ MnpAddFreeTxBuf (
|
|||
for (Index = 0; Index < Count; Index++) {
|
||||
TxBufWrap = (MNP_TX_BUF_WRAP*) AllocatePool (OFFSET_OF (MNP_TX_BUF_WRAP, TxBuf) + MnpDeviceData->BufferLength );
|
||||
if (TxBufWrap == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpAddFreeTxBuf: TxBuf Alloc failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpAddFreeTxBuf: TxBuf Alloc failed.\n"));
|
||||
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
break;
|
||||
}
|
||||
DEBUG ((EFI_D_INFO, "MnpAddFreeTxBuf: Add TxBufWrap %p, TxBuf %p\n", TxBufWrap, TxBufWrap->TxBuf));
|
||||
DEBUG ((DEBUG_INFO, "MnpAddFreeTxBuf: Add TxBufWrap %p, TxBuf %p\n", TxBufWrap, TxBufWrap->TxBuf));
|
||||
TxBufWrap->Signature = MNP_TX_BUF_WRAP_SIGNATURE;
|
||||
TxBufWrap->InUse = FALSE;
|
||||
InsertTailList (&MnpDeviceData->FreeTxBufList, &TxBufWrap->WrapEntry);
|
||||
|
@ -288,7 +288,7 @@ MnpAllocTxBuf (
|
|||
if (IsListEmpty (&MnpDeviceData->FreeTxBufList)) {
|
||||
if ((MnpDeviceData->TxBufCount + MNP_TX_BUFFER_INCREASEMENT) > MNP_MAX_TX_BUFFER_NUM) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpAllocTxBuf: The maximum TxBuf size is reached for MNP driver instance %p.\n",
|
||||
MnpDeviceData)
|
||||
);
|
||||
|
@ -300,7 +300,7 @@ MnpAllocTxBuf (
|
|||
Status = MnpAddFreeTxBuf (MnpDeviceData, MNP_TX_BUFFER_INCREASEMENT);
|
||||
if (IsListEmpty (&MnpDeviceData->FreeTxBufList)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpAllocNbuf: Failed to add TxBuf into the FreeTxBufList, %r.\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -349,7 +349,7 @@ MnpFreeTxBuf (
|
|||
TxBufWrap = NET_LIST_USER_STRUCT (TxBuf, MNP_TX_BUF_WRAP, TxBuf);
|
||||
if (TxBufWrap->Signature != MNP_TX_BUF_WRAP_SIGNATURE) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpFreeTxBuf: Signature check failed in MnpFreeTxBuf.\n")
|
||||
);
|
||||
return;
|
||||
|
@ -357,7 +357,7 @@ MnpFreeTxBuf (
|
|||
|
||||
if (!TxBufWrap->InUse) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"MnpFreeTxBuf: Duplicated recycle report from SNP.\n")
|
||||
);
|
||||
return;
|
||||
|
@ -491,7 +491,7 @@ MnpInitializeDeviceData (
|
|||
NetbufQueInit (&MnpDeviceData->FreeNbufQue);
|
||||
Status = MnpAddFreeNbuf (MnpDeviceData, MNP_INIT_NET_BUFFER_NUM);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: MnpAddFreeNbuf failed, %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: MnpAddFreeNbuf failed, %r.\n", Status));
|
||||
|
||||
goto ERROR;
|
||||
}
|
||||
|
@ -524,7 +524,7 @@ MnpInitializeDeviceData (
|
|||
&MnpDeviceData->PollTimer
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: CreateEvent for poll timer failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: CreateEvent for poll timer failed.\n"));
|
||||
|
||||
goto ERROR;
|
||||
}
|
||||
|
@ -540,7 +540,7 @@ MnpInitializeDeviceData (
|
|||
&MnpDeviceData->TimeoutCheckTimer
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: CreateEvent for packet timeout check failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: CreateEvent for packet timeout check failed.\n"));
|
||||
|
||||
goto ERROR;
|
||||
}
|
||||
|
@ -556,7 +556,7 @@ MnpInitializeDeviceData (
|
|||
&MnpDeviceData->MediaDetectTimer
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpInitializeDeviceData: CreateEvent for media detection failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpInitializeDeviceData: CreateEvent for media detection failed.\n"));
|
||||
|
||||
goto ERROR;
|
||||
}
|
||||
|
@ -1222,7 +1222,7 @@ MnpStart (
|
|||
//
|
||||
Status = MnpStartSnp (MnpDeviceData->Snp);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpStart: MnpStartSnp failed, %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "MnpStart: MnpStartSnp failed, %r.\n", Status));
|
||||
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
@ -1237,7 +1237,7 @@ MnpStart (
|
|||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpStart, gBS->SetTimer for TimeoutCheckTimer %r.\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -1255,7 +1255,7 @@ MnpStart (
|
|||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpStart, gBS->SetTimer for MediaDetectTimer %r.\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -1274,7 +1274,7 @@ MnpStart (
|
|||
|
||||
Status = gBS->SetTimer (MnpDeviceData->PollTimer, TimerOpType, MNP_SYS_POLL_INTERVAL);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpStart: gBS->SetTimer for PollTimer failed, %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "MnpStart: gBS->SetTimer for PollTimer failed, %r.\n", Status));
|
||||
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
@ -1610,7 +1610,7 @@ MnpConfigReceiveFilters (
|
|||
MCastFilterCnt = MnpDeviceData->GroupAddressCount;
|
||||
MCastFilter = AllocatePool (sizeof (EFI_MAC_ADDRESS) * MCastFilterCnt);
|
||||
if (MCastFilter == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpConfigReceiveFilters: Failed to allocate memory resource for MCastFilter.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpConfigReceiveFilters: Failed to allocate memory resource for MCastFilter.\n"));
|
||||
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
@ -1672,7 +1672,7 @@ MnpConfigReceiveFilters (
|
|||
DEBUG_CODE (
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpConfigReceiveFilters: Snp->ReceiveFilters failed, %r.\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -1729,7 +1729,7 @@ MnpGroupOpAddCtrlBlk (
|
|||
GroupAddress = AllocatePool (sizeof (MNP_GROUP_ADDRESS));
|
||||
if (GroupAddress == NULL) {
|
||||
|
||||
DEBUG ((EFI_D_ERROR, "MnpGroupOpFormCtrlBlk: Failed to allocate memory resource.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpGroupOpFormCtrlBlk: Failed to allocate memory resource.\n"));
|
||||
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
@ -1861,7 +1861,7 @@ MnpGroupOp (
|
|||
//
|
||||
NewCtrlBlk = AllocatePool (sizeof (MNP_GROUP_CONTROL_BLOCK));
|
||||
if (NewCtrlBlk == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpGroupOp: Failed to allocate memory resource.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpGroupOp: Failed to allocate memory resource.\n"));
|
||||
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
|
|
@ -164,14 +164,14 @@ MnpDriverBindingStart (
|
|||
//
|
||||
MnpDeviceData = AllocateZeroPool (sizeof (MNP_DEVICE_DATA));
|
||||
if (MnpDeviceData == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpDriverBindingStart(): Failed to allocate the Mnp Device Data.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpDriverBindingStart(): Failed to allocate the Mnp Device Data.\n"));
|
||||
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
Status = MnpInitializeDeviceData (MnpDeviceData, This->DriverBindingHandle, ControllerHandle);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpDriverBindingStart: MnpInitializeDeviceData failed, %r.\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "MnpDriverBindingStart: MnpInitializeDeviceData failed, %r.\n", Status));
|
||||
|
||||
FreePool (MnpDeviceData);
|
||||
return Status;
|
||||
|
@ -342,7 +342,7 @@ MnpDriverBindingStop (
|
|||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "MnpDriverBindingStop: try to stop unknown Controller.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "MnpDriverBindingStop: try to stop unknown Controller.\n"));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
|
@ -468,7 +468,7 @@ MnpServiceBindingCreateChild (
|
|||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpServiceBindingCreateChild: Failed to install the MNP protocol, %r.\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -614,7 +614,7 @@ MnpServiceBindingDestroyChild (
|
|||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"MnpServiceBindingDestroyChild: Failed to uninstall the ManagedNetwork protocol, %r.\n",
|
||||
Status)
|
||||
);
|
||||
|
|
|
@ -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--;
|
||||
}
|
||||
|
|
|
@ -130,9 +130,9 @@ Mtftp4GetInfoCheckPacket (
|
|||
case EFI_MTFTP4_OPCODE_ERROR:
|
||||
ErrorHeader = (EFI_MTFTP4_ERROR_HEADER *) Packet;
|
||||
if (ErrorHeader->ErrorCode == EFI_MTFTP4_ERRORCODE_FILE_NOT_FOUND) {
|
||||
DEBUG ((EFI_D_ERROR, "TFTP error code 1 (File Not Found)\n"));
|
||||
DEBUG ((DEBUG_ERROR, "TFTP error code 1 (File Not Found)\n"));
|
||||
} else {
|
||||
DEBUG ((EFI_D_ERROR, "TFTP error code %d\n", ErrorHeader->ErrorCode));
|
||||
DEBUG ((DEBUG_ERROR, "TFTP error code %d\n", ErrorHeader->ErrorCode));
|
||||
}
|
||||
State->Status = EFI_TFTP_ERROR;
|
||||
break;
|
||||
|
|
|
@ -246,7 +246,7 @@ SnpUndi32CallbackMap (
|
|||
}
|
||||
|
||||
if (Index >= MAX_MAP_LENGTH) {
|
||||
DEBUG ((EFI_D_INFO, "SNP maplist is FULL\n"));
|
||||
DEBUG ((DEBUG_INFO, "SNP maplist is FULL\n"));
|
||||
*DevAddrPtr = 0;
|
||||
return ;
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ SnpUndi32CallbackUnmap (
|
|||
}
|
||||
|
||||
if (Index >= MAX_MAP_LENGTH) {
|
||||
DEBUG ((EFI_D_ERROR, "SNP could not find a mapping, failed to unmap.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "SNP could not find a mapping, failed to unmap.\n"));
|
||||
return ;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,13 +71,13 @@ PxeGetStatus (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.get_status() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.get_status() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"\nSnp->undi.get_status() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -46,7 +46,7 @@ PxeInit (
|
|||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nSnp->PxeInit() AllocateBuffer %xh (%r)\n",
|
||||
Status,
|
||||
Status)
|
||||
|
@ -91,7 +91,7 @@ PxeInit (
|
|||
Snp->Cdb.IFnum = Snp->IfNum;
|
||||
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
||||
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.initialize() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.initialize() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -121,7 +121,7 @@ PxeInit (
|
|||
Status = EFI_SUCCESS;
|
||||
} else {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"\nSnp->undi.initialize() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -55,7 +55,7 @@ PxeIp2Mac (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.mcast_ip_to_mac() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.mcast_ip_to_mac() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -68,7 +68,7 @@ PxeIp2Mac (
|
|||
|
||||
case PXE_STATCODE_UNSUPPORTED:
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -81,7 +81,7 @@ PxeIp2Mac (
|
|||
// to caller.
|
||||
//
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -53,7 +53,7 @@ PxeNvDataRead (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.nvdata () "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.nvdata () "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -63,7 +63,7 @@ PxeNvDataRead (
|
|||
|
||||
case PXE_STATCODE_UNSUPPORTED:
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"\nsnp->undi.nvdata() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -73,7 +73,7 @@ PxeNvDataRead (
|
|||
|
||||
default:
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"\nsnp->undi.nvdata() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -76,7 +76,7 @@ PxeReceive (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive () "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.receive () "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -86,7 +86,7 @@ PxeReceive (
|
|||
|
||||
case PXE_STATCODE_NO_DATA:
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"\nsnp->undi.receive () %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -96,7 +96,7 @@ PxeReceive (
|
|||
|
||||
default:
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.receive() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -73,7 +73,7 @@ PxeRecvFilterEnable (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive_filters() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.receive_filters() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -82,7 +82,7 @@ PxeRecvFilterEnable (
|
|||
// UNDI command failed. Return UNDI status to caller.
|
||||
//
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -161,7 +161,7 @@ PxeRecvFilterDisable (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive_filters() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.receive_filters() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -170,7 +170,7 @@ PxeRecvFilterDisable (
|
|||
// UNDI command failed. Return UNDI status to caller.
|
||||
//
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -213,7 +213,7 @@ PxeRecvFilterRead (
|
|||
Snp->Cdb.IFnum = Snp->IfNum;
|
||||
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
||||
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.receive_filters() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.receive_filters() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -222,7 +222,7 @@ PxeRecvFilterRead (
|
|||
// UNDI command failed. Return UNDI status to caller.
|
||||
//
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.receive_filters() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -37,13 +37,13 @@ PxeReset (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.reset() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.reset() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"\nsnp->undi32.reset() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -98,7 +98,7 @@ SnpUndi32Reset (
|
|||
// Resolve Warning 4 unreferenced parameter problem
|
||||
//
|
||||
ExtendedVerification = 0;
|
||||
DEBUG ((EFI_D_WARN, "ExtendedVerification = %d is not implemented!\n", ExtendedVerification));
|
||||
DEBUG ((DEBUG_WARN, "ExtendedVerification = %d is not implemented!\n", ExtendedVerification));
|
||||
|
||||
if (This == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
|
|
@ -37,7 +37,7 @@ PxeShutdown (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.shutdown() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.shutdown() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -45,7 +45,7 @@ PxeShutdown (
|
|||
//
|
||||
// UNDI could not be shutdown. Return UNDI error.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "\nsnp->undi.shutdown() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||
DEBUG ((DEBUG_WARN, "\nsnp->undi.shutdown() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ IssueHwUndiCommand (
|
|||
UINT64 Cdb
|
||||
)
|
||||
{
|
||||
DEBUG ((EFI_D_ERROR, "\nIssueHwUndiCommand() - This should not be called!"));
|
||||
DEBUG ((DEBUG_ERROR, "\nIssueHwUndiCommand() - This should not be called!"));
|
||||
|
||||
if (Cdb == 0) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
@ -149,12 +149,12 @@ SimpleNetworkDriverSupported (
|
|||
|
||||
if (EFI_ERROR (Status)) {
|
||||
if (Status == EFI_ALREADY_STARTED) {
|
||||
DEBUG ((EFI_D_INFO, "Support(): Already Started. on handle %p\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "Support(): Already Started. on handle %p\n", Controller));
|
||||
}
|
||||
return Status;
|
||||
}
|
||||
|
||||
DEBUG ((EFI_D_INFO, "Support(): UNDI3.1 found on handle %p\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "Support(): UNDI3.1 found on handle %p\n", Controller));
|
||||
|
||||
//
|
||||
// check the version, we don't want to connect to the undi16
|
||||
|
@ -167,7 +167,7 @@ SimpleNetworkDriverSupported (
|
|||
// Check to see if !PXE structure is valid. Paragraph alignment of !PXE structure is required.
|
||||
//
|
||||
if ((NiiProtocol->Id & 0x0F) != 0) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE structure is not paragraph aligned.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE structure is not paragraph aligned.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
@ -178,25 +178,25 @@ SimpleNetworkDriverSupported (
|
|||
// Verify !PXE revisions.
|
||||
//
|
||||
if (Pxe->hw.Signature != PXE_ROMID_SIGNATURE) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE signature is not valid.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE signature is not valid.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
if (Pxe->hw.Rev < PXE_ROMID_REV) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.Rev is not supported.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.Rev is not supported.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
if (Pxe->hw.MajorVer < PXE_ROMID_MAJORVER) {
|
||||
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.MajorVer is not supported.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.MajorVer is not supported.\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
|
||||
} else if (Pxe->hw.MajorVer == PXE_ROMID_MAJORVER && Pxe->hw.MinorVer < PXE_ROMID_MINORVER) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.MinorVer is not supported."));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.MinorVer is not supported."));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
@ -205,20 +205,20 @@ SimpleNetworkDriverSupported (
|
|||
//
|
||||
if ((Pxe->hw.Implementation & PXE_ROMID_IMP_HW_UNDI) == 0) {
|
||||
if (Pxe->sw.EntryPoint < Pxe->sw.Len) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE S/W entry point is not valid."));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE S/W entry point is not valid."));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
|
||||
if (Pxe->sw.BusCnt == 0) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE.BusCnt is zero."));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE.BusCnt is zero."));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
goto Done;
|
||||
}
|
||||
}
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
DEBUG ((EFI_D_INFO, "Support(): supported on %p\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "Support(): supported on %p\n", Controller));
|
||||
|
||||
Done:
|
||||
gBS->CloseProtocol (
|
||||
|
@ -271,7 +271,7 @@ SimpleNetworkDriverStart (
|
|||
BOOLEAN FoundIoBar;
|
||||
BOOLEAN FoundMemoryBar;
|
||||
|
||||
DEBUG ((EFI_D_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));
|
||||
|
||||
Status = gBS->OpenProtocol (
|
||||
Controller,
|
||||
|
@ -328,12 +328,12 @@ SimpleNetworkDriverStart (
|
|||
return Status;
|
||||
}
|
||||
|
||||
DEBUG ((EFI_D_INFO, "Start(): UNDI3.1 found\n"));
|
||||
DEBUG ((DEBUG_INFO, "Start(): UNDI3.1 found\n"));
|
||||
|
||||
Pxe = (PXE_UNDI *) (UINTN) (Nii->Id);
|
||||
|
||||
if (Calc8BitCksum (Pxe, Pxe->hw.Len) != 0) {
|
||||
DEBUG ((EFI_D_NET, "\n!PXE checksum is not correct.\n"));
|
||||
DEBUG ((DEBUG_NET, "\n!PXE checksum is not correct.\n"));
|
||||
goto NiiError;
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ SimpleNetworkDriverStart (
|
|||
// broadcast support or we cannot do DHCP!
|
||||
//
|
||||
} else {
|
||||
DEBUG ((EFI_D_NET, "\nUNDI does not have promiscuous or broadcast support."));
|
||||
DEBUG ((DEBUG_NET, "\nUNDI does not have promiscuous or broadcast support."));
|
||||
goto NiiError;
|
||||
}
|
||||
//
|
||||
|
@ -365,7 +365,7 @@ SimpleNetworkDriverStart (
|
|||
);
|
||||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
DEBUG ((EFI_D_NET, "\nCould not allocate SNP_DRIVER structure.\n"));
|
||||
DEBUG ((DEBUG_NET, "\nCould not allocate SNP_DRIVER structure.\n"));
|
||||
goto NiiError;
|
||||
}
|
||||
|
||||
|
@ -452,7 +452,7 @@ SimpleNetworkDriverStart (
|
|||
);
|
||||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
DEBUG ((EFI_D_NET, "\nCould not allocate CPB and DB structures.\n"));
|
||||
DEBUG ((DEBUG_NET, "\nCould not allocate CPB and DB structures.\n"));
|
||||
goto Error_DeleteSNP;
|
||||
}
|
||||
|
||||
|
@ -519,7 +519,7 @@ SimpleNetworkDriverStart (
|
|||
Snp->Cdb.IFnum = Snp->IfNum;
|
||||
Snp->Cdb.Control = PXE_CONTROL_LAST_CDB_IN_LIST;
|
||||
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.get_init_info() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.get_init_info() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -529,7 +529,7 @@ SimpleNetworkDriverStart (
|
|||
InitStatFlags = Snp->Cdb.StatFlags;
|
||||
|
||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.init_info() %xh:%xh\n", Snp->Cdb.StatFlags, Snp->Cdb.StatCode));
|
||||
PxeStop (Snp);
|
||||
goto Error_DeleteSNP;
|
||||
}
|
||||
|
@ -627,7 +627,7 @@ SimpleNetworkDriverStart (
|
|||
Status = PxeGetStnAddr (Snp);
|
||||
|
||||
if (Status != EFI_SUCCESS) {
|
||||
DEBUG ((EFI_D_ERROR, "\nSnp->undi.get_station_addr() failed.\n"));
|
||||
DEBUG ((DEBUG_ERROR, "\nSnp->undi.get_station_addr() failed.\n"));
|
||||
PxeShutdown (Snp);
|
||||
PxeStop (Snp);
|
||||
goto Error_DeleteSNP;
|
||||
|
|
|
@ -66,7 +66,7 @@ PxeStart (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.start() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.start() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -75,7 +75,7 @@ PxeStart (
|
|||
// UNDI could not be started. Return UNDI error.
|
||||
//
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.start() %xh:%xh\n",
|
||||
Snp->Cdb.StatCode,
|
||||
Snp->Cdb.StatFlags)
|
||||
|
|
|
@ -44,13 +44,13 @@ PxeGetStnAddr (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.station_addr() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.station_addr() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.station_addr() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -132,13 +132,13 @@ PxeSetStnAddr (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.station_addr() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.station_addr() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.station_addr() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -133,7 +133,7 @@ SnpUndi32Statistics (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.statistics() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.statistics() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -143,7 +143,7 @@ SnpUndi32Statistics (
|
|||
|
||||
case PXE_STATCODE_UNSUPPORTED:
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.statistics() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -154,7 +154,7 @@ SnpUndi32Statistics (
|
|||
|
||||
default:
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nsnp->undi.statistics() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -37,13 +37,13 @@ PxeStop (
|
|||
//
|
||||
// Issue UNDI command
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nsnp->undi.stop() "));
|
||||
DEBUG ((DEBUG_NET, "\nsnp->undi.stop() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
|
||||
|
||||
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"\nsnp->undi.stop() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -95,7 +95,7 @@ PxeFillHeader (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.fill_header() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.fill_header() "));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);
|
||||
|
||||
|
@ -105,7 +105,7 @@ PxeFillHeader (
|
|||
|
||||
case PXE_STATCODE_INVALID_PARAMETER:
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nSnp->undi.fill_header() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -115,7 +115,7 @@ PxeFillHeader (
|
|||
|
||||
default:
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nSnp->undi.fill_header() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -171,15 +171,15 @@ PxeTransmit (
|
|||
//
|
||||
// Issue UNDI command and check result.
|
||||
//
|
||||
DEBUG ((EFI_D_NET, "\nSnp->undi.transmit() "));
|
||||
DEBUG ((EFI_D_NET, "\nSnp->Cdb.OpCode == %x", Snp->Cdb.OpCode));
|
||||
DEBUG ((EFI_D_NET, "\nSnp->Cdb.CPBaddr == %LX", Snp->Cdb.CPBaddr));
|
||||
DEBUG ((EFI_D_NET, "\nSnp->Cdb.DBaddr == %LX", Snp->Cdb.DBaddr));
|
||||
DEBUG ((EFI_D_NET, "\nCpb->FrameAddr == %LX\n", Cpb->FrameAddr));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->undi.transmit() "));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->Cdb.OpCode == %x", Snp->Cdb.OpCode));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->Cdb.CPBaddr == %LX", Snp->Cdb.CPBaddr));
|
||||
DEBUG ((DEBUG_NET, "\nSnp->Cdb.DBaddr == %LX", Snp->Cdb.DBaddr));
|
||||
DEBUG ((DEBUG_NET, "\nCpb->FrameAddr == %LX\n", Cpb->FrameAddr));
|
||||
|
||||
(*Snp->IssueUndi32Command) ((UINT64) (UINTN) &Snp->Cdb);
|
||||
|
||||
DEBUG ((EFI_D_NET, "\nexit Snp->undi.transmit() "));
|
||||
DEBUG ((DEBUG_NET, "\nexit Snp->undi.transmit() "));
|
||||
|
||||
//
|
||||
// we will unmap the buffers in get_status call, not here
|
||||
|
@ -193,7 +193,7 @@ PxeTransmit (
|
|||
case PXE_STATCODE_BUSY:
|
||||
Status = EFI_NOT_READY;
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"\nSnp->undi.transmit() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
@ -202,7 +202,7 @@ PxeTransmit (
|
|||
|
||||
default:
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"\nSnp->undi.transmit() %xh:%xh\n",
|
||||
Snp->Cdb.StatFlags,
|
||||
Snp->Cdb.StatCode)
|
||||
|
|
|
@ -381,7 +381,7 @@ SockProcessTcpSndData (
|
|||
|
||||
if (NULL == SndData) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockKProcessSndData: Failed to call NetBufferFromExt\n")
|
||||
);
|
||||
|
||||
|
@ -516,7 +516,7 @@ SockWakeListenToken (
|
|||
|
||||
Parent->ConnCnt--;
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"SockWakeListenToken: accept a socket, now conncnt is %d",
|
||||
Parent->ConnCnt)
|
||||
);
|
||||
|
@ -667,7 +667,7 @@ SockCreate (
|
|||
|
||||
if ((Parent != NULL) && (Parent->ConnCnt == Parent->BackLog)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCreate: Socket parent has reached its connection limit with %d ConnCnt and %d BackLog\n",
|
||||
Parent->ConnCnt,
|
||||
Parent->BackLog)
|
||||
|
@ -679,7 +679,7 @@ SockCreate (
|
|||
Sock = AllocateZeroPool (sizeof (SOCKET));
|
||||
if (NULL == Sock) {
|
||||
|
||||
DEBUG ((EFI_D_ERROR, "SockCreate: No resource to create a new socket\n"));
|
||||
DEBUG ((DEBUG_ERROR, "SockCreate: No resource to create a new socket\n"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -695,7 +695,7 @@ SockCreate (
|
|||
Sock->SndBuffer.DataQueue = NetbufQueAlloc ();
|
||||
if (NULL == Sock->SndBuffer.DataQueue) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCreate: No resource to allocate SndBuffer for new socket\n")
|
||||
);
|
||||
|
||||
|
@ -705,7 +705,7 @@ SockCreate (
|
|||
Sock->RcvBuffer.DataQueue = NetbufQueAlloc ();
|
||||
if (NULL == Sock->RcvBuffer.DataQueue) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCreate: No resource to allocate RcvBuffer for new socket\n")
|
||||
);
|
||||
|
||||
|
@ -751,7 +751,7 @@ SockCreate (
|
|||
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCreate: Install TCP protocol in socket failed with %r\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -770,7 +770,7 @@ SockCreate (
|
|||
Parent->ConnCnt++;
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"SockCreate: Create a new socket and add to parent, now conncnt is %d\n",
|
||||
Parent->ConnCnt)
|
||||
);
|
||||
|
@ -850,7 +850,7 @@ SockDestroy (
|
|||
(Sock->Parent->ConnCnt)--;
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"SockDestroy: Delete a unaccepted socket from parent now conncnt is %d\n",
|
||||
Sock->Parent->ConnCnt)
|
||||
);
|
||||
|
@ -975,7 +975,7 @@ SockClone (
|
|||
ClonedSock = SockCreate (&InitData);
|
||||
|
||||
if (NULL == ClonedSock) {
|
||||
DEBUG ((EFI_D_ERROR, "SockClone: no resource to create a cloned sock\n"));
|
||||
DEBUG ((DEBUG_ERROR, "SockClone: no resource to create a cloned sock\n"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1230,4 +1230,3 @@ SockNoMoreData (
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ SockBufferToken (
|
|||
if (NULL == SockToken) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockBufferIOToken: No Memory to allocate SockToken\n")
|
||||
);
|
||||
|
||||
|
@ -192,7 +192,7 @@ SockDestroyChild (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockDestroyChild: Open protocol installed on socket failed with %r\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -213,7 +213,7 @@ SockDestroyChild (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockDestroyChild: Get the lock to access socket failed with %r\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -229,7 +229,7 @@ SockDestroyChild (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockDestroyChild: Protocol detach socket failed with %r\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -280,7 +280,7 @@ SockCreateChild (
|
|||
if (NULL == Sock) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCreateChild: No resource to create a new socket\n")
|
||||
);
|
||||
|
||||
|
@ -291,7 +291,7 @@ SockCreateChild (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCreateChild: Get the lock to access socket failed with %r\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -306,7 +306,7 @@ SockCreateChild (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCreateChild: Protocol failed to attach a socket with %r\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -371,7 +371,7 @@ SockConfigure (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockConfigure: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -425,7 +425,7 @@ SockConnect (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockConnect: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -504,7 +504,7 @@ SockAccept (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockAccept: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -557,7 +557,7 @@ SockAccept (
|
|||
Socket->Parent->ConnCnt--;
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"SockAccept: Accept a socket, now conncount is %d",
|
||||
Socket->Parent->ConnCnt)
|
||||
);
|
||||
|
@ -619,7 +619,7 @@ SockSend (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockSend: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -686,7 +686,7 @@ SockSend (
|
|||
|
||||
if (NULL == SockToken) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockSend: Failed to buffer IO token into socket processing SndToken List\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -699,7 +699,7 @@ SockSend (
|
|||
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockSend: Failed to process Snd Data\n",
|
||||
Status)
|
||||
);
|
||||
|
@ -750,7 +750,7 @@ SockRcv (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockRcv: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -848,7 +848,7 @@ SockFlush (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockFlush: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -866,7 +866,7 @@ SockFlush (
|
|||
if (EFI_ERROR (Status)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockFlush: Protocol failed handling SOCK_FLUSH with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -919,7 +919,7 @@ SockClose (
|
|||
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockClose: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -990,7 +990,7 @@ SockCancel (
|
|||
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockCancel: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -1099,7 +1099,7 @@ SockRoute (
|
|||
Status = EfiAcquireLockOrFail (&(Sock->Lock));
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"SockRoute: Get the access for socket failed with %r",
|
||||
Status)
|
||||
);
|
||||
|
@ -1123,4 +1123,3 @@ Exit:
|
|||
EfiReleaseLock (&(Sock->Lock));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -269,7 +269,7 @@ TcpBind (
|
|||
if (*RandomPort <= TCP_PORT_KNOWN) {
|
||||
if (Cycle) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpBind: no port can be allocated for this pcb\n")
|
||||
);
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
|
@ -359,7 +359,7 @@ TcpAttachPcb (
|
|||
|
||||
if (Tcb == NULL) {
|
||||
|
||||
DEBUG ((EFI_D_ERROR, "TcpConfigurePcb: failed to allocate a TCB\n"));
|
||||
DEBUG ((DEBUG_ERROR, "TcpConfigurePcb: failed to allocate a TCB\n"));
|
||||
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
@ -540,7 +540,7 @@ TcpConfigurePcb (
|
|||
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpConfigurePcb: Bind endpoint failed with %r\n",
|
||||
Status)
|
||||
);
|
||||
|
|
|
@ -905,7 +905,7 @@ TcpServiceBindingCreateChild (
|
|||
Sock = SockCreateChild (&mTcpDefaultSockData);
|
||||
if (NULL == Sock) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpDriverBindingCreateChild: No resource to create a Tcp Child\n")
|
||||
);
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ TcpFastRecover (
|
|||
Tcb->CWnd = Tcb->Ssthresh + 3 * Tcb->SndMss;
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpFastRecover: enter fast retransmission for TCB %p, recover point is %d\n",
|
||||
Tcb,
|
||||
Tcb->Recover)
|
||||
|
@ -91,7 +91,7 @@ TcpFastRecover (
|
|||
//
|
||||
Tcb->CWnd += Tcb->SndMss;
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpFastRecover: received another duplicated ACK (%d) for TCB %p\n",
|
||||
Seg->Ack,
|
||||
Tcb)
|
||||
|
@ -115,7 +115,7 @@ TcpFastRecover (
|
|||
|
||||
Tcb->CongestState = TCP_CONGEST_OPEN;
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpFastRecover: received a full ACK(%d) for TCB %p, exit fast recovery\n",
|
||||
Seg->Ack,
|
||||
Tcb)
|
||||
|
@ -144,7 +144,7 @@ TcpFastRecover (
|
|||
Tcb->CWnd -= Acked;
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpFastRecover: received a partial ACK(%d) for TCB %p\n",
|
||||
Seg->Ack,
|
||||
Tcb)
|
||||
|
@ -182,7 +182,7 @@ TcpFastLossRecover (
|
|||
Tcb->CongestState = TCP_CONGEST_OPEN;
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpFastLossRecover: received a full ACK(%d) for TCB %p\n",
|
||||
Seg->Ack,
|
||||
Tcb)
|
||||
|
@ -196,7 +196,7 @@ TcpFastLossRecover (
|
|||
//
|
||||
TcpRetransmit (Tcb, Seg->Ack);
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpFastLossRecover: received a partial ACK(%d) for TCB %p\n",
|
||||
Seg->Ack,
|
||||
Tcb)
|
||||
|
@ -258,7 +258,7 @@ TcpComputeRtt (
|
|||
}
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpComputeRtt: new RTT for TCB %p computed SRTT: %d RTTVAR: %d RTO: %d\n",
|
||||
Tcb,
|
||||
Tcb->SRtt,
|
||||
|
@ -423,7 +423,7 @@ TcpDeliverData (
|
|||
|
||||
if (TcpVerifySegment (Nbuf) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpToSendData: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -454,7 +454,7 @@ TcpDeliverData (
|
|||
//
|
||||
if (!IsListEmpty (&Tcb->RcvQue)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpDeliverData: data received after FIN from peer of TCB %p, reset connection\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -464,7 +464,7 @@ TcpDeliverData (
|
|||
}
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpDeliverData: processing FIN from peer of TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -498,7 +498,7 @@ TcpDeliverData (
|
|||
} else {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -771,7 +771,7 @@ TcpInput (
|
|||
ASSERT (Head != NULL);
|
||||
|
||||
if (Nbuf->TotalSize < sizeof (TCP_HEAD)) {
|
||||
DEBUG ((EFI_D_NET, "TcpInput: received a malformed packet\n"));
|
||||
DEBUG ((DEBUG_NET, "TcpInput: received a malformed packet\n"));
|
||||
goto DISCARD;
|
||||
}
|
||||
|
||||
|
@ -779,7 +779,7 @@ TcpInput (
|
|||
|
||||
if ((Head->HeadLen < 5) || (Len < 0)) {
|
||||
|
||||
DEBUG ((EFI_D_NET, "TcpInput: received a malformed packet\n"));
|
||||
DEBUG ((DEBUG_NET, "TcpInput: received a malformed packet\n"));
|
||||
|
||||
goto DISCARD;
|
||||
}
|
||||
|
@ -793,7 +793,7 @@ TcpInput (
|
|||
Checksum = TcpChecksum (Nbuf, Checksum);
|
||||
|
||||
if (Checksum != 0) {
|
||||
DEBUG ((EFI_D_ERROR, "TcpInput: received a checksum error packet\n"));
|
||||
DEBUG ((DEBUG_ERROR, "TcpInput: received a checksum error packet\n"));
|
||||
goto DISCARD;
|
||||
}
|
||||
|
||||
|
@ -815,7 +815,7 @@ TcpInput (
|
|||
);
|
||||
|
||||
if ((Tcb == NULL) || (Tcb->State == TCP_CLOSED)) {
|
||||
DEBUG ((EFI_D_NET, "TcpInput: send reset because no TCB found\n"));
|
||||
DEBUG ((DEBUG_NET, "TcpInput: send reset because no TCB found\n"));
|
||||
|
||||
Tcb = NULL;
|
||||
goto SEND_RESET;
|
||||
|
@ -829,7 +829,7 @@ TcpInput (
|
|||
//
|
||||
if (TcpParseOption (Nbuf->Tcp, &Option) == -1) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: reset the peer because of malformed option for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -852,7 +852,7 @@ TcpInput (
|
|||
//
|
||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_RST)) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: discard a reset segment for TCB %p in listening\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -866,7 +866,7 @@ TcpInput (
|
|||
//
|
||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: send reset because of segment with ACK for TCB %p in listening\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -886,7 +886,7 @@ TcpInput (
|
|||
Tcb = TcpCloneTcb (Parent);
|
||||
if (Tcb == NULL) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: discard a segment because failed to clone a child for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -895,7 +895,7 @@ TcpInput (
|
|||
}
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpInput: create a child for TCB %p in listening\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -915,7 +915,7 @@ TcpInput (
|
|||
TcpSetTimer (Tcb, TCP_TIMER_CONNECT, Tcb->ConnectTimeout);
|
||||
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -935,7 +935,7 @@ TcpInput (
|
|||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK) && (Seg->Ack != Tcb->Iss + 1)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: send reset because of wrong ACK received for TCB %p in SYN_SENT\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -951,7 +951,7 @@ TcpInput (
|
|||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: connection reset by peer for TCB %p in SYN_SENT\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -961,7 +961,7 @@ TcpInput (
|
|||
} else {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: discard a reset segment because of no ACK for TCB %p in SYN_SENT\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1005,7 +1005,7 @@ TcpInput (
|
|||
|
||||
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1016,7 +1016,7 @@ TcpInput (
|
|||
TCP_SET_FLG (Tcb->CtrlFlag, TCP_CTRL_ACK_NOW);
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpInput: connection established for TCB %p in SYN_SENT\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1032,7 +1032,7 @@ TcpInput (
|
|||
|
||||
if (TcpAdjustSndQue (Tcb, Tcb->SndNxt) == 0 || TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1041,7 +1041,7 @@ TcpInput (
|
|||
}
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: simultaneous open for TCB %p in SYN_SENT\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1070,7 +1070,7 @@ TcpInput (
|
|||
//
|
||||
if (TcpSeqAcceptable (Tcb, Seg) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: sequence acceptance test failed for segment of TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1095,7 +1095,7 @@ TcpInput (
|
|||
//
|
||||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_RST)) {
|
||||
|
||||
DEBUG ((EFI_D_WARN, "TcpInput: connection reset for TCB %p\n", Tcb));
|
||||
DEBUG ((DEBUG_WARN, "TcpInput: connection reset for TCB %p\n", Tcb));
|
||||
|
||||
if (Tcb->State == TCP_SYN_RCVD) {
|
||||
|
||||
|
@ -1126,7 +1126,7 @@ TcpInput (
|
|||
//
|
||||
if (TcpTrimInWnd (Tcb, Nbuf) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1144,7 +1144,7 @@ TcpInput (
|
|||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_SYN)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: connection reset because received extra SYN for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1157,7 +1157,7 @@ TcpInput (
|
|||
//
|
||||
if (!TCP_FLG_ON (Seg->Flag, TCP_FLG_ACK)) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: segment discard because of no ACK for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1186,7 +1186,7 @@ TcpInput (
|
|||
TcpDeliverData (Tcb);
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpInput: connection established for TCB %p in SYN_RCVD\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1196,7 +1196,7 @@ TcpInput (
|
|||
//
|
||||
} else {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: send reset because of wrong ACK for TCB %p in SYN_RCVD\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1208,7 +1208,7 @@ TcpInput (
|
|||
if (TCP_SEQ_LT (Seg->Ack, Tcb->SndUna)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: ignore the out-of-data ACK for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1218,7 +1218,7 @@ TcpInput (
|
|||
} else if (TCP_SEQ_GT (Seg->Ack, Tcb->SndNxt)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: discard segment for future ACK for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1309,7 +1309,7 @@ TcpInput (
|
|||
|
||||
if (TcpAdjustSndQue (Tcb, Seg->Ack) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1347,7 +1347,7 @@ TcpInput (
|
|||
}
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: peer shrinks the window for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1375,14 +1375,14 @@ TcpInput (
|
|||
// 2^Rcv.Wind.Shift before moving the SndNxt to the left.
|
||||
//
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: peer advise negative useable window for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
Usable = TCP_SUB_SEQ (Tcb->SndNxt, Right);
|
||||
if ((Usable >> Tcb->SndWndScale) > 0) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: SndNxt is out of window by more than window scale for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1409,7 +1409,7 @@ NO_UPDATE:
|
|||
{
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpInput: local FIN is ACKed by peer for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1452,7 +1452,7 @@ NO_UPDATE:
|
|||
} else {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1481,7 +1481,7 @@ NO_UPDATE:
|
|||
} else {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"Connection closed immediately because app disables TIME_WAIT timer for %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1505,7 +1505,7 @@ StepSix:
|
|||
if (TCP_FLG_ON (Seg->Flag, TCP_FLG_URG) && !TCP_FIN_RCVD (Tcb->State)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpInput: received urgent data from peer for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1531,7 +1531,7 @@ StepSix:
|
|||
if (TCP_FIN_RCVD (Tcb->State)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: connection reset because data is lost for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1541,7 +1541,7 @@ StepSix:
|
|||
|
||||
if (TCP_LOCAL_CLOSED (Tcb->State) && (Nbuf->TotalSize != 0)) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpInput: connection reset because data is lost for connected TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1551,7 +1551,7 @@ StepSix:
|
|||
|
||||
if (TcpQueueData (Tcb, Nbuf) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpInput: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1615,7 +1615,7 @@ DISCARD:
|
|||
//
|
||||
// Tcb is a child of Parent, and it doesn't survive
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "TcpInput: Discard a packet\n"));
|
||||
DEBUG ((DEBUG_WARN, "TcpInput: Discard a packet\n"));
|
||||
NetbufFree (Nbuf);
|
||||
|
||||
if ((Parent != NULL) && (Tcb != NULL)) {
|
||||
|
|
|
@ -80,7 +80,7 @@ TcpSendIpPacket (
|
|||
IpSender = IpIoFindSender (&IpIo, Version, Src);
|
||||
|
||||
if (IpSender == NULL) {
|
||||
DEBUG ((EFI_D_WARN, "TcpSendIpPacket: No appropriate IpSender.\n"));
|
||||
DEBUG ((DEBUG_WARN, "TcpSendIpPacket: No appropriate IpSender.\n"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,7 @@ TcpSendIpPacket (
|
|||
Status = IpIoSend (IpIo, Nbuf, IpSender, NULL, NULL, Dest, &Override);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "TcpSendIpPacket: return %r error\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "TcpSendIpPacket: return %r error\n", Status));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ Tcp6RefreshNeighbor (
|
|||
IpIoFindSender (&IpIo, IP_VERSION_6, Neighbor);
|
||||
|
||||
if (IpIo == NULL) {
|
||||
DEBUG ((EFI_D_WARN, "Tcp6AddNeighbor: No appropriate IpIo.\n"));
|
||||
DEBUG ((DEBUG_WARN, "Tcp6AddNeighbor: No appropriate IpIo.\n"));
|
||||
return EFI_NOT_STARTED;
|
||||
}
|
||||
|
||||
|
@ -183,4 +183,3 @@ Tcp6RefreshNeighbor (
|
|||
|
||||
return IpIoRefreshNeighbor (IpIo, Neighbor, Timeout);
|
||||
}
|
||||
|
||||
|
|
|
@ -501,7 +501,7 @@ TcpCloneTcb (
|
|||
|
||||
Clone->Sk = SockClone (Tcb->Sk);
|
||||
if (Clone->Sk == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "TcpCloneTcb: failed to clone a sock\n"));
|
||||
DEBUG ((DEBUG_ERROR, "TcpCloneTcb: failed to clone a sock\n"));
|
||||
FreePool (Clone);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -608,7 +608,7 @@ TcpSetState (
|
|||
ASSERT (State < (sizeof (mTcpStateName) / sizeof (CHAR16 *)));
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"Tcb (%p) state %s --> %s\n",
|
||||
Tcb,
|
||||
mTcpStateName[Tcb->State],
|
||||
|
@ -757,7 +757,7 @@ TcpOnAppClose (
|
|||
if (!IsListEmpty (&Tcb->RcvQue) || GET_RCV_DATASIZE (Tcb->Sk) != 0) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpOnAppClose: connection reset because data is lost for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -857,7 +857,7 @@ TcpOnAppConsume (
|
|||
if (TcpOld < Tcb->RcvMss) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpOnAppConsume: send a window update for a window closed Tcb %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -866,7 +866,7 @@ TcpOnAppConsume (
|
|||
} else if (Tcb->DelayedAck == 0) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpOnAppConsume: scheduled a delayed ACK to update window for Tcb %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -895,7 +895,7 @@ TcpOnAppAbort (
|
|||
)
|
||||
{
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpOnAppAbort: connection reset issued by application for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1039,4 +1039,3 @@ TcpInstallDevicePath (
|
|||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ SetPersistTimer:
|
|||
if (!TCP_TIMER_ON (Tcb->EnabledTimer, TCP_TIMER_REXMIT)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpDataToSend: enter persistent state for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -562,7 +562,7 @@ TcpGetSegmentSock (
|
|||
|
||||
if (Nbuf == NULL) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpGetSegmentSock: failed to allocate a netbuf for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -678,7 +678,7 @@ TcpRetransmit (
|
|||
(TCP_SEQ_GT (Seq, Tcb->RetxmitSeqMax) || TCP_SEQ_BETWEEN (Tcb->SndWl2 + Tcb->SndWnd, Seq, Tcb->SndWl2 + Tcb->SndWnd + (1 << Tcb->SndWndScale)))) {
|
||||
Len = TCP_SUB_SEQ (Tcb->SndNxt, Seq);
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpRetransmit: retransmission without regard to the receiver window for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -688,7 +688,7 @@ TcpRetransmit (
|
|||
|
||||
} else {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpRetransmit: retransmission cancelled because send window too small for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -845,7 +845,7 @@ TcpToSendData (
|
|||
|
||||
if (Nbuf == NULL) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpToSendData: failed to get a segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -874,7 +874,7 @@ TcpToSendData (
|
|||
TCP_SEQ_LT (End + 1, Tcb->SndWnd + Tcb->SndWl2)
|
||||
) {
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpToSendData: send FIN to peer for TCB %p in state %s\n",
|
||||
Tcb,
|
||||
mTcpStateName[Tcb->State])
|
||||
|
@ -892,7 +892,7 @@ TcpToSendData (
|
|||
|
||||
if (TcpVerifySegment (Nbuf) == 0 || TcpCheckSndQue (&Tcb->SndQue) == 0) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpToSendData: discard a broken segment for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -904,7 +904,7 @@ TcpToSendData (
|
|||
//
|
||||
if (Seg->End == Seg->Seq) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpToSendData: created a empty segment for TCB %p, free it now\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -959,7 +959,7 @@ TcpToSendData (
|
|||
if ((Tcb->CongestState == TCP_CONGEST_OPEN) && !TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RTT_ON)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpToSendData: set RTT measure sequence %d for TCB %p\n",
|
||||
Seq,
|
||||
Tcb)
|
||||
|
@ -1090,7 +1090,7 @@ TcpToSendAck (
|
|||
}
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_NET,
|
||||
(DEBUG_NET,
|
||||
"TcpToSendAck: scheduled a delayed ACK for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -1248,4 +1248,3 @@ TcpVerifySegment (
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ TcpConnectTimeout (
|
|||
{
|
||||
if (!TCP_CONNECTED (Tcb->State)) {
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpConnectTimeout: connection closed because connection timer timeout for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -159,7 +159,7 @@ TcpConnectTimeout (
|
|||
|
||||
if (TCP_SYN_RCVD == Tcb->State) {
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpConnectTimeout: send reset because connection timer timeout for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -187,7 +187,7 @@ TcpRexmitTimeout (
|
|||
UINT32 FlightSize;
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpRexmitTimeout: transmission timeout for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -207,7 +207,7 @@ TcpRexmitTimeout (
|
|||
if ((Tcb->LossTimes > Tcb->MaxRexmit) && !TCP_TIMER_ON (Tcb->EnabledTimer, TCP_TIMER_CONNECT)) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_ERROR,
|
||||
(DEBUG_ERROR,
|
||||
"TcpRexmitTimeout: connection closed because too many timeouts for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -299,7 +299,7 @@ TcpFinwait2Timeout (
|
|||
)
|
||||
{
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"TcpFinwait2Timeout: connection closed because FIN_WAIT2 timer timeouts for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -319,7 +319,7 @@ Tcp2MSLTimeout (
|
|||
)
|
||||
{
|
||||
DEBUG (
|
||||
(EFI_D_WARN,
|
||||
(DEBUG_WARN,
|
||||
"Tcp2MSLTimeout: connection closed because TIME_WAIT timer timeouts for TCB %p\n",
|
||||
Tcb)
|
||||
);
|
||||
|
@ -584,4 +584,3 @@ TcpTicking (
|
|||
{
|
||||
QueueDpc (TPL_CALLBACK, TcpTickingDpc, Context);
|
||||
}
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ TlsEncryptPacket (
|
|||
//
|
||||
// No data was successfully encrypted, continue to encrypt other messages.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "TlsEncryptPacket: No data read from TLS object.\n"));
|
||||
DEBUG ((DEBUG_WARN, "TlsEncryptPacket: No data read from TLS object.\n"));
|
||||
|
||||
ThisMessageSize = 0;
|
||||
}
|
||||
|
@ -301,7 +301,7 @@ TlsDecryptPacket (
|
|||
//
|
||||
// No data was successfully decrypted, continue to decrypt other messages.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "TlsDecryptPacket: No data read from TLS object.\n"));
|
||||
DEBUG ((DEBUG_WARN, "TlsDecryptPacket: No data read from TLS object.\n"));
|
||||
|
||||
ThisPlainMessageSize = 0;
|
||||
}
|
||||
|
@ -346,4 +346,3 @@ ERROR:
|
|||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ PxeBcBuildDhcp4Options (
|
|||
//
|
||||
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
ZeroMem (OptEnt.Uuid->Guid, sizeof (EFI_GUID));
|
||||
}
|
||||
|
||||
|
@ -1277,7 +1277,7 @@ PxeBcDhcp4CallBack (
|
|||
//
|
||||
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
ZeroMem (Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
|
||||
}
|
||||
Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
|
||||
|
@ -1466,7 +1466,7 @@ PxeBcDhcp4Discover (
|
|||
//
|
||||
// Zero the Guid to indicate NOT programmable if failed to get system Guid.
|
||||
//
|
||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
ZeroMem (Token.Packet->Dhcp4.Header.ClientHwAddr, sizeof (EFI_GUID));
|
||||
}
|
||||
Token.Packet->Dhcp4.Header.HwAddrLen = (UINT8) sizeof (EFI_GUID);
|
||||
|
|
|
@ -1951,7 +1951,7 @@ EfiPxeBcSetParameters (
|
|||
|
||||
if (NewSendGUID != NULL) {
|
||||
if (*NewSendGUID && EFI_ERROR (NetLibGetSystemGuid (&SystemGuid))) {
|
||||
DEBUG ((EFI_D_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
DEBUG ((DEBUG_WARN, "PXE: Failed to read system GUID from the smbios table!\n"));
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
Mode->SendGUID = *NewSendGUID;
|
||||
|
@ -2418,4 +2418,3 @@ EfiPxeLoadFile (
|
|||
}
|
||||
|
||||
EFI_LOAD_FILE_PROTOCOL gLoadFileProtocolTemplate = { EfiPxeLoadFile };
|
||||
|
||||
|
|
Loading…
Reference in New Issue