]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c
EmbeddedPkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / EmbeddedPkg / Application / AndroidFastboot / AndroidFastbootApp.c
index 3e3f4b7eb2b44f2a16719d3ca7d5add24d35f415..32d5c755d79a6caa713a24aa096107acfc82eb36 100644 (file)
@@ -161,7 +161,7 @@ HandleFlash (
   } else if (EFI_ERROR (Status)) {\r
     SEND_LITERAL ("FAILError flashing partition.");\r
     mTextOut->OutputString (mTextOut, L"Error flashing partition.\r\n");\r
-    DEBUG ((EFI_D_ERROR, "Couldn't flash image:  %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Couldn't flash image:  %r\n", Status));\r
   } else {\r
     mTextOut->OutputString (mTextOut, L"Done.\r\n");\r
     SEND_LITERAL ("OKAY");\r
@@ -184,7 +184,7 @@ HandleErase (
   Status = mPlatform->ErasePartition (PartitionName);\r
   if (EFI_ERROR (Status)) {\r
     SEND_LITERAL ("FAILCheck device console.");\r
-    DEBUG ((EFI_D_ERROR, "Couldn't erase image:  %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Couldn't erase image:  %r\n", Status));\r
   } else {\r
     SEND_LITERAL ("OKAY");\r
   }\r
@@ -212,7 +212,7 @@ HandleBoot (
 \r
   Status = BootAndroidBootImg (mNumDataBytes, mDataBuffer);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Failed to boot downloaded image: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Failed to boot downloaded image: %r\n", Status));\r
   }\r
   // We shouldn't get here\r
 }\r
@@ -286,13 +286,13 @@ AcceptCmd (
     gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL);\r
 \r
     // Shouldn't get here\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: gRT->ResetSystem didn't work\n"));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: gRT->ResetSystem didn't work\n"));\r
   } else if (MATCH_CMD_LITERAL ("powerdown", Command)) {\r
     SEND_LITERAL ("OKAY");\r
     gRT->ResetSystem (EfiResetShutdown, EFI_SUCCESS, 0, NULL);\r
 \r
     // Shouldn't get here\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: gRT->ResetSystem didn't work\n"));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: gRT->ResetSystem didn't work\n"));\r
   } else if (MATCH_CMD_LITERAL ("oem", Command)) {\r
     // The "oem" command isn't in the specification, but it was observed in the\r
     // wild, followed by a space, followed by the actual command.\r
@@ -430,25 +430,25 @@ FastbootAppEntryPoint (
     (VOID **) &mTransport\r
     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Couldn't open Fastboot Transport Protocol: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Couldn't open Fastboot Transport Protocol: %r\n", Status));\r
     return Status;\r
   }\r
 \r
   Status = gBS->LocateProtocol (&gAndroidFastbootPlatformProtocolGuid, NULL, (VOID **) &mPlatform);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Couldn't open Fastboot Platform Protocol: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Couldn't open Fastboot Platform Protocol: %r\n", Status));\r
     return Status;\r
   }\r
 \r
   Status = mPlatform->Init ();\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Couldn't initialise Fastboot Platform Protocol: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Couldn't initialise Fastboot Platform Protocol: %r\n", Status));\r
     return Status;\r
   }\r
 \r
   Status = gBS->LocateProtocol (&gEfiSimpleTextOutProtocolGuid, NULL, (VOID **) &mTextOut);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
       "Fastboot: Couldn't open Text Output Protocol: %r\n", Status\r
       ));\r
     return Status;\r
@@ -456,14 +456,14 @@ FastbootAppEntryPoint (
 \r
   Status = gBS->LocateProtocol (&gEfiSimpleTextInProtocolGuid, NULL, (VOID **) &TextIn);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Couldn't open Text Input Protocol: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Couldn't open Text Input Protocol: %r\n", Status));\r
     return Status;\r
   }\r
 \r
   // Disable watchdog\r
   Status = gBS->SetWatchdogTimer (0, 0x10000, 0, NULL);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Couldn't disable watchdog timer: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Couldn't disable watchdog timer: %r\n", Status));\r
   }\r
 \r
   // Create event for receipt of data from the host\r
@@ -497,7 +497,7 @@ FastbootAppEntryPoint (
     ReceiveEvent\r
     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Fastboot: Couldn't start transport: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Fastboot: Couldn't start transport: %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -521,7 +521,7 @@ FastbootAppEntryPoint (
 \r
   mTransport->Stop ();\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Warning: Fastboot Transport Stop: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Warning: Fastboot Transport Stop: %r\n", Status));\r
   }\r
   mPlatform->UnInit ();\r
 \r