\r
if (NULL == SndData) {\r
DEBUG (\r
- (EFI_D_ERROR,\r
+ (DEBUG_ERROR,\r
"SockKProcessSndData: Failed to call NetBufferFromExt\n")\r
);\r
\r
\r
Parent->ConnCnt--;\r
DEBUG (\r
- (EFI_D_NET,\r
+ (DEBUG_NET,\r
"SockWakeListenToken: accept a socket, now conncnt is %d",\r
Parent->ConnCnt)\r
);\r
\r
if ((Parent != NULL) && (Parent->ConnCnt == Parent->BackLog)) {\r
DEBUG (\r
- (EFI_D_ERROR,\r
+ (DEBUG_ERROR,\r
"SockCreate: Socket parent has reached its connection limit with %d ConnCnt and %d BackLog\n",\r
Parent->ConnCnt,\r
Parent->BackLog)\r
Sock = AllocateZeroPool (sizeof (SOCKET));\r
if (NULL == Sock) {\r
\r
- DEBUG ((EFI_D_ERROR, "SockCreate: No resource to create a new socket\n"));\r
+ DEBUG ((DEBUG_ERROR, "SockCreate: No resource to create a new socket\n"));\r
return NULL;\r
}\r
\r
Sock->SndBuffer.DataQueue = NetbufQueAlloc ();\r
if (NULL == Sock->SndBuffer.DataQueue) {\r
DEBUG (\r
- (EFI_D_ERROR,\r
+ (DEBUG_ERROR,\r
"SockCreate: No resource to allocate SndBuffer for new socket\n")\r
);\r
\r
Sock->RcvBuffer.DataQueue = NetbufQueAlloc ();\r
if (NULL == Sock->RcvBuffer.DataQueue) {\r
DEBUG (\r
- (EFI_D_ERROR,\r
+ (DEBUG_ERROR,\r
"SockCreate: No resource to allocate RcvBuffer for new socket\n")\r
);\r
\r
\r
if (EFI_ERROR (Status)) {\r
DEBUG (\r
- (EFI_D_ERROR,\r
+ (DEBUG_ERROR,\r
"SockCreate: Install TCP protocol in socket failed with %r\n",\r
Status)\r
);\r
Parent->ConnCnt++;\r
\r
DEBUG (\r
- (EFI_D_NET,\r
+ (DEBUG_NET,\r
"SockCreate: Create a new socket and add to parent, now conncnt is %d\n",\r
Parent->ConnCnt)\r
);\r
(Sock->Parent->ConnCnt)--;\r
\r
DEBUG (\r
- (EFI_D_WARN,\r
+ (DEBUG_WARN,\r
"SockDestroy: Delete a unaccepted socket from parent now conncnt is %d\n",\r
Sock->Parent->ConnCnt)\r
);\r
ClonedSock = SockCreate (&InitData);\r
\r
if (NULL == ClonedSock) {\r
- DEBUG ((EFI_D_ERROR, "SockClone: no resource to create a cloned sock\n"));\r
+ DEBUG ((DEBUG_ERROR, "SockClone: no resource to create a cloned sock\n"));\r
return NULL;\r
}\r
\r
\r
}\r
}\r
-\r