]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcp.c
EmbeddedPkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / EmbeddedPkg / Drivers / AndroidFastbootTransportTcpDxe / FastbootTransportTcp.c
index 34f9ba74e4db0434cb7dd9c8bcb5c5f8e582bf56..0cf884b3502cfc626fa193e19ef5c4375b92be5b 100644 (file)
@@ -99,7 +99,7 @@ SubmitRecieveToken (
   FragmentBuffer = AllocatePool (RX_FRAGMENT_SIZE);\r
   ASSERT (FragmentBuffer != NULL);\r
   if (FragmentBuffer == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Fastboot out of resources"));\r
+    DEBUG ((DEBUG_ERROR, "TCP Fastboot out of resources"));\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -109,7 +109,7 @@ SubmitRecieveToken (
 \r
   Status = mTcpConnection->Receive (mTcpConnection, &mReceiveToken[mNextSubmitIndex]);\r
    if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Receive: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP Receive: %r\n", Status));\r
     FreePool (FragmentBuffer);\r
   }\r
 \r
@@ -140,7 +140,7 @@ ConnectionClosed (
 \r
   Status = mTcpListener->Accept (mTcpListener, &mAcceptToken);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Accept: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP Accept: %r\n", Status));\r
   }\r
 }\r
 \r
@@ -195,7 +195,7 @@ DataReceived (
 \r
   NewEntry = AllocatePool (sizeof (FASTBOOT_TCP_PACKET_LIST));\r
   if (NewEntry == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Fastboot: Out of resources\n"));\r
+    DEBUG ((DEBUG_ERROR, "TCP Fastboot: Out of resources\n"));\r
     return;\r
   }\r
 \r
@@ -215,7 +215,7 @@ DataReceived (
     NewEntry->Buffer = NULL;\r
     NewEntry->BufferSize = 0;\r
 \r
-    DEBUG ((EFI_D_ERROR, "\nTCP Fastboot Receive error: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "\nTCP Fastboot Receive error: %r\n", Status));\r
   }\r
 \r
   InsertTailList (&mPacketListHead, &NewEntry->Link);\r
@@ -244,10 +244,10 @@ ConnectionAccepted (
   Status = AcceptToken->CompletionToken.Status;\r
 \r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Fastboot: Connection Error: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP Fastboot: Connection Error: %r\n", Status));\r
     return;\r
   }\r
-  DEBUG ((EFI_D_ERROR, "TCP Fastboot: Connection Received.\n"));\r
+  DEBUG ((DEBUG_ERROR, "TCP Fastboot: Connection Received.\n"));\r
 \r
   //\r
   // Accepting a new TCP connection creates a new instance of the TCP protocol.\r
@@ -263,7 +263,7 @@ ConnectionAccepted (
                   EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Open TCP Connection: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Open TCP Connection: %r\n", Status));\r
     return;\r
   }\r
 \r
@@ -335,7 +335,7 @@ TcpFastbootTransportStart (
                   &HandleBuffer\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Find TCP Service Binding: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Find TCP Service Binding: %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -351,13 +351,13 @@ TcpFastbootTransportStart (
                     EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Open TCP Service Binding: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Open TCP Service Binding: %r\n", Status));\r
     return Status;\r
   }\r
 \r
   Status = mTcpServiceBinding->CreateChild (mTcpServiceBinding, &mTcpHandle);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP ServiceBinding Create: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP ServiceBinding Create: %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -370,7 +370,7 @@ TcpFastbootTransportStart (
                     EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Open TCP Protocol: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Open TCP Protocol: %r\n", Status));\r
   }\r
 \r
   //\r
@@ -423,7 +423,7 @@ TcpFastbootTransportStart (
     } while (!Ip4ModeData.IsConfigured);\r
     Status = mTcpListener->Configure (mTcpListener, &TcpConfigData);\r
   } else if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Configure: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP Configure: %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -443,7 +443,7 @@ TcpFastbootTransportStart (
 \r
   Status = mTcpListener->Accept (mTcpListener, &mAcceptToken);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Accept: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP Accept: %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -539,7 +539,7 @@ DataSent (
 \r
   Status = mTransmitToken.CompletionToken.Status;\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Fastboot transmit result: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP Fastboot transmit result: %r\n", Status));\r
     gBS->SignalEvent (*(EFI_EVENT *) Context);\r
   }\r
 \r
@@ -584,7 +584,7 @@ TcpFastbootTransportSend (
 \r
   Status = mTcpConnection->Transmit (mTcpConnection, &mTransmitToken);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "TCP Transmit: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "TCP Transmit: %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -642,7 +642,7 @@ TcpFastbootTransportEntryPoint (
     (VOID **) &mTextOut\r
     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Open Text Output Protocol: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Open Text Output Protocol: %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -653,7 +653,7 @@ TcpFastbootTransportEntryPoint (
                   &mTransportProtocol\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Install transport Protocol: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Install transport Protocol: %r\n", Status));\r
   }\r
 \r
   return Status;\r