]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg: Change use of EFI_D_* to DEBUG_*
authorMichael D Kinney <michael.d.kinney@intel.com>
Wed, 17 Nov 2021 03:21:20 +0000 (19:21 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 7 Dec 2021 17:24:28 +0000 (17:24 +0000)
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: Ard Biesheuvel <ardb@kernel.org>
15 files changed:
EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c
EmbeddedPkg/Application/AndroidFastboot/Arm/BootAndroidBootImg.c
EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcp.c
EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.c
EmbeddedPkg/GdbStub/Arm/Processor.c
EmbeddedPkg/GdbStub/GdbStub.c
EmbeddedPkg/Library/AcpiLib/AcpiLib.c
EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c
EmbeddedPkg/Library/PrePiLib/FwVol.c
EmbeddedPkg/Library/PrePiLib/PrePiLib.c
EmbeddedPkg/Universal/MmcDxe/Diagnostics.c
EmbeddedPkg/Universal/MmcDxe/Mmc.h
EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c
EmbeddedPkg/Universal/MmcDxe/MmcDebug.c
EmbeddedPkg/Universal/MmcDxe/MmcIdentification.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
index fe05878b4b661da6052cd4ff825b62c0ec0c5942..c9b885b07357a5cd01c0ebb20333233a1a60d4bc 100644 (file)
@@ -162,14 +162,14 @@ BootAndroidBootImg (
              StrSize (LoadOptions),\r
              LoadOptions);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Couldn't Boot Linux: %d\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "Couldn't Boot Linux: %d\n", Status));\r
     Status = EFI_DEVICE_ERROR;\r
     goto FreeLoadOptions;\r
   }\r
 \r
   // If we got here we do a confused face because BootLinuxFdt returned,\r
   // reporting success.\r
-  DEBUG ((EFI_D_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n"));\r
+  DEBUG ((DEBUG_ERROR, "WARNING: BdsBootLinuxFdt returned EFI_SUCCESS.\n"));\r
   return EFI_SUCCESS;\r
 \r
 FreeLoadOptions:\r
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
index 6300d288db951e754bccb220797219c35a787139..45bed5e776c10b04f2c59eb5e1457acc13971057 100644 (file)
@@ -208,7 +208,7 @@ FindCompatibleNodeReg (
   }\r
 \r
   if ((*RegSize % 16) != 0) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
       "%a: '%a' compatible node has invalid 'reg' property (size == 0x%x)\n",\r
       __FUNCTION__, CompatibleString, *RegSize));\r
     return EFI_NOT_FOUND;\r
@@ -261,13 +261,13 @@ FindNextMemoryNodeReg (
       //\r
       Status = GetNodeProperty (This, Next, "reg", Reg, RegSize);\r
       if (EFI_ERROR (Status)) {\r
-        DEBUG ((EFI_D_WARN,\r
+        DEBUG ((DEBUG_WARN,\r
           "%a: ignoring memory node with no 'reg' property\n",\r
           __FUNCTION__));\r
         continue;\r
       }\r
       if ((*RegSize % 16) != 0) {\r
-        DEBUG ((EFI_D_WARN,\r
+        DEBUG ((DEBUG_WARN,\r
           "%a: ignoring memory node with invalid 'reg' property (size == 0x%x)\n",\r
           __FUNCTION__, *RegSize));\r
         continue;\r
@@ -391,14 +391,14 @@ InitializeFdtClientDxe (
   DeviceTreeBase = (VOID *)(UINTN)*(UINT64 *)GET_GUID_HOB_DATA (Hob);\r
 \r
   if (fdt_check_header (DeviceTreeBase) != 0) {\r
-    DEBUG ((EFI_D_ERROR, "%a: No DTB found @ 0x%p\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_ERROR, "%a: No DTB found @ 0x%p\n", __FUNCTION__,\r
       DeviceTreeBase));\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
   mDeviceTreeBase = DeviceTreeBase;\r
 \r
-  DEBUG ((EFI_D_INFO, "%a: DTB @ 0x%p\n", __FUNCTION__, mDeviceTreeBase));\r
+  DEBUG ((DEBUG_INFO, "%a: DTB @ 0x%p\n", __FUNCTION__, mDeviceTreeBase));\r
 \r
   //\r
   // Register a protocol notify for the EDKII Platform Has Device Tree\r
index f15d356c44810ccadd99d1de19f018723c101455..bb956b7e79bf2e237a1b363892e4dd300000a7af 100644 (file)
@@ -416,7 +416,7 @@ AddSingleStep (
   }\r
 \r
   InvalidateInstructionCacheRange ((VOID *)mSingleStepPC, mSingleStepDataSize);\r
-  //DEBUG((EFI_D_ERROR, "AddSingleStep at 0x%08x (was: 0x%08x is:0x%08x)\n", SystemContext.SystemContextArm->PC, mSingleStepData, *(UINT32 *)mSingleStepPC));\r
+  //DEBUG((DEBUG_ERROR, "AddSingleStep at 0x%08x (was: 0x%08x is:0x%08x)\n", SystemContext.SystemContextArm->PC, mSingleStepData, *(UINT32 *)mSingleStepPC));\r
 }\r
 \r
 \r
@@ -437,7 +437,7 @@ RemoveSingleStep (
   if (mSingleStepDataSize == sizeof (UINT16)) {\r
     *(UINT16 *)mSingleStepPC = (UINT16)mSingleStepData;\r
   } else {\r
-    //DEBUG((EFI_D_ERROR, "RemoveSingleStep at 0x%08x (was: 0x%08x is:0x%08x)\n", SystemContext.SystemContextArm->PC, *(UINT32 *)mSingleStepPC, mSingleStepData));\r
+    //DEBUG((DEBUG_ERROR, "RemoveSingleStep at 0x%08x (was: 0x%08x is:0x%08x)\n", SystemContext.SystemContextArm->PC, *(UINT32 *)mSingleStepPC, mSingleStepData));\r
     *(UINT32 *)mSingleStepPC = mSingleStepData;\r
   }\r
   InvalidateInstructionCacheRange ((VOID *)mSingleStepPC, mSingleStepDataSize);\r
@@ -556,7 +556,7 @@ SetBreakpoint (
   *(UINT32 *)Address = GDB_ARM_BKPT;\r
   InvalidateInstructionCacheRange ((VOID *)Address, 4);\r
 \r
-  //DEBUG((EFI_D_ERROR, "SetBreakpoint at 0x%08x (was: 0x%08x is:0x%08x)\n", Address, Breakpoint->Instruction, *(UINT32 *)Address));\r
+  //DEBUG((DEBUG_ERROR, "SetBreakpoint at 0x%08x (was: 0x%08x is:0x%08x)\n", Address, Breakpoint->Instruction, *(UINT32 *)Address));\r
 }\r
 \r
 VOID\r
@@ -579,7 +579,7 @@ ClearBreakpoint (
   *(UINT32 *)Address = Breakpoint->Instruction;\r
   InvalidateInstructionCacheRange ((VOID *)Address, 4);\r
 \r
-  //DEBUG((EFI_D_ERROR, "ClearBreakpoint at 0x%08x (was: 0x%08x is:0x%08x)\n", Address, GDB_ARM_BKPT, *(UINT32 *)Address));\r
+  //DEBUG((DEBUG_ERROR, "ClearBreakpoint at 0x%08x (was: 0x%08x is:0x%08x)\n", Address, GDB_ARM_BKPT, *(UINT32 *)Address));\r
 \r
   FreePool (Breakpoint);\r
 }\r
@@ -607,7 +607,7 @@ InsertBreakPoint (
       break;\r
 \r
     default  :\r
-      DEBUG((EFI_D_ERROR, "Insert breakpoint default: %x\n", Type));\r
+      DEBUG((DEBUG_ERROR, "Insert breakpoint default: %x\n", Type));\r
       SendError (GDB_EINVALIDBRKPOINTTYPE);\r
       return;\r
   }\r
@@ -694,4 +694,3 @@ ValidateException (
 \r
   return TRUE;\r
 }\r
-\r
index 7f2a5ed20011c06482760e4994ef3fcbe46bd734..dd035271a7d12a86355645eb8460cd1fa25f3d59 100644 (file)
@@ -91,7 +91,7 @@ GdbStubEntry (
                   &Handles\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Debug Support Protocol not found\n"));\r
+    DEBUG ((DEBUG_ERROR, "Debug Support Protocol not found\n"));\r
 \r
     return Status;\r
   }\r
@@ -116,7 +116,7 @@ GdbStubEntry (
   FreePool (Handles);\r
 \r
   if (!IsaSupported) {\r
-    DEBUG ((EFI_D_ERROR, "Debug Support Protocol does not support our ISA\n"));\r
+    DEBUG ((DEBUG_ERROR, "Debug Support Protocol does not support our ISA\n"));\r
 \r
     return EFI_NOT_FOUND;\r
   }\r
@@ -124,8 +124,8 @@ GdbStubEntry (
   Status = DebugSupport->GetMaximumProcessorIndex (DebugSupport, &gMaxProcessorIndex);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  DEBUG ((EFI_D_INFO, "Debug Support Protocol ISA %x\n", DebugSupport->Isa));\r
-  DEBUG ((EFI_D_INFO, "Debug Support Protocol Processor Index %d\n", gMaxProcessorIndex));\r
+  DEBUG ((DEBUG_INFO, "Debug Support Protocol ISA %x\n", DebugSupport->Isa));\r
+  DEBUG ((DEBUG_INFO, "Debug Support Protocol Processor Index %d\n", gMaxProcessorIndex));\r
 \r
   // Call processor-specific init routine\r
   InitializeProcessor ();\r
index ff7d678433d5c8dfdd7ac346faf7535da33cb959..c2bde4ad8e527a137768994abd0c43e19011b694 100644 (file)
@@ -108,7 +108,7 @@ LocateAndInstallAcpiFromFvConditional (
         AcpiTableSize = ((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Length;\r
         ASSERT (SectionSize >= AcpiTableSize);\r
 \r
-        DEBUG ((EFI_D_ERROR, "- Found '%c%c%c%c' ACPI Table\n",\r
+        DEBUG ((DEBUG_ERROR, "- Found '%c%c%c%c' ACPI Table\n",\r
             (((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Signature & 0xFF),\r
             ((((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Signature >> 8) & 0xFF),\r
             ((((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Signature >> 16) & 0xFF),\r
index 088e23e0d89f41e163a6b5cb3add5d8b2c1af670..71452008ec99352bc9b66b481d1414278f6279b5 100644 (file)
@@ -199,8 +199,8 @@ GdbGetChar (
 \r
   Char = IoRead8 (gPort);\r
 \r
-  // Make this an EFI_D_INFO after we get everything debugged.\r
-  DEBUG ((EFI_D_ERROR, "<%c<", Char));\r
+  // Make this an DEBUG_INFO after we get everything debugged.\r
+  DEBUG ((DEBUG_ERROR, "<%c<", Char));\r
   return Char;\r
 }\r
 \r
@@ -221,8 +221,8 @@ GdbPutChar (
 {\r
   UINT8   Data;\r
 \r
-  // Make this an EFI_D_INFO after we get everything debugged.\r
-  DEBUG ((EFI_D_ERROR, ">%c>", Char));\r
+  // Make this an DEBUG_INFO after we get everything debugged.\r
+  DEBUG ((DEBUG_ERROR, ">%c>", Char));\r
 \r
   // Wait for the serial port to be ready\r
   do {\r
@@ -250,7 +250,3 @@ GdbPutString (
     String++;\r
   }\r
 }\r
-\r
-\r
-\r
-\r
index 881506edddafc04728e7f2d02e55b8f69d32e5e8..83aa40f7940c7b4d366785fffc138e626b8aad6e 100644 (file)
@@ -361,7 +361,7 @@ FfsProcessSection (
         //\r
         // GetInfo failed\r
         //\r
-        DEBUG ((EFI_D_ERROR, "Decompress GetInfo Failed - %r\n", Status));\r
+        DEBUG ((DEBUG_ERROR, "Decompress GetInfo Failed - %r\n", Status));\r
         return EFI_NOT_FOUND;\r
       }\r
       //\r
@@ -415,7 +415,7 @@ FfsProcessSection (
         //\r
         // Decompress failed\r
         //\r
-        DEBUG ((EFI_D_ERROR, "Decompress Failed - %r\n", Status));\r
+        DEBUG ((DEBUG_ERROR, "Decompress Failed - %r\n", Status));\r
         return EFI_NOT_FOUND;\r
       } else {\r
         return FfsProcessSection (\r
@@ -874,5 +874,3 @@ FfsProcessFvFile (
 \r
   return EFI_SUCCESS;\r
 }\r
-\r
-\r
index afbe1466326b5330f13c2008a60140366b7901a4..d20617cf4bbffb2643fbb4036d21a14c9d4a32fd 100644 (file)
@@ -154,7 +154,7 @@ LoadDxeCoreFromFfsFile (
 \r
   BuildModuleHob (&FvFileInfo.FileName, (EFI_PHYSICAL_ADDRESS)(UINTN)ImageAddress, EFI_SIZE_TO_PAGES ((UINT32) ImageSize) * EFI_PAGE_SIZE, EntryPoint);\r
 \r
-  DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Loading DxeCore at 0x%10p EntryPoint=0x%10p\n", (VOID *)(UINTN)ImageAddress, (VOID *)(UINTN)EntryPoint));\r
+  DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DxeCore at 0x%10p EntryPoint=0x%10p\n", (VOID *)(UINTN)ImageAddress, (VOID *)(UINTN)EntryPoint));\r
 \r
   Hob = GetHobList ();\r
   if (StackSize == 0) {\r
@@ -191,7 +191,7 @@ LoadDxeCoreFromFfsFile (
   }\r
 \r
   // Should never get here as DXE Core does not return\r
-  DEBUG ((EFI_D_ERROR, "DxeCore returned\n"));\r
+  DEBUG ((DEBUG_ERROR, "DxeCore returned\n"));\r
   ASSERT (FALSE);\r
 \r
   return EFI_DEVICE_ERROR;\r
@@ -247,5 +247,3 @@ DecompressFirstFv (
 \r
   return Status;\r
 }\r
-\r
-\r
index 49b069043093544a3cbadc46fda4de483803d638..54ab95dbd3c74d2d0c121d0b1f026527542fc3e9 100644 (file)
@@ -74,8 +74,8 @@ CompareBuffer (
 \r
   for (i = 0; i < (BufferSize >> 3); i++) {\r
     if (*BufferA64 != *BufferB64) {\r
-      DEBUG ((EFI_D_ERROR, "CompareBuffer: Error at %i", i));\r
-      DEBUG ((EFI_D_ERROR, "(0x%lX) != (0x%lX)\n", *BufferA64, *BufferB64));\r
+      DEBUG ((DEBUG_ERROR, "CompareBuffer: Error at %i", i));\r
+      DEBUG ((DEBUG_ERROR, "(0x%lX) != (0x%lX)\n", *BufferA64, *BufferB64));\r
       return FALSE;\r
     }\r
     BufferA64++;\r
index df3b3cde9fa6753e17be481ef5f2f091f9799e59..ad9804bb9a8f963d74aa51db9aa1aa9efdd9c675 100644 (file)
@@ -21,7 +21,7 @@
 #include <Library/DebugLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 \r
-#define MMC_TRACE(txt)  DEBUG((EFI_D_BLKIO, "MMC: " txt "\n"))\r
+#define MMC_TRACE(txt)  DEBUG((DEBUG_BLKIO, "MMC: " txt "\n"))\r
 \r
 #define MMC_IOBLOCKS_READ       0\r
 #define MMC_IOBLOCKS_WRITE      1\r
index 2a5d72d4daf6045e691e51d5b82ed8e6fb721121..7614ecdf0ac31d4a0e72bc91e1d41eb537cb452d 100644 (file)
@@ -43,7 +43,7 @@ MmcGetCardStatus (
     CmdArg = MmcHostInstance->CardInfo.RCA << 16;\r
     Status = MmcHost->SendCommand (MmcHost, MMC_CMD13, CmdArg);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "MmcGetCardStatus(MMC_CMD13): Error and Status = %r\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "MmcGetCardStatus(MMC_CMD13): Error and Status = %r\n", Status));\r
       return Status;\r
     }\r
 \r
@@ -163,7 +163,7 @@ MmcTransferBlock (
 \r
   Status = MmcHost->SendCommand (MmcHost, Cmd, CmdArg);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a(MMC_CMD%d): Error %r\n", __func__, Cmd, Status));\r
+    DEBUG ((DEBUG_ERROR, "%a(MMC_CMD%d): Error %r\n", __func__, Cmd, Status));\r
     return Status;\r
   }\r
 \r
@@ -171,20 +171,20 @@ MmcTransferBlock (
     // Read Data\r
     Status = MmcHost->ReadBlockData (MmcHost, Lba, BufferSize, Buffer);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_BLKIO, "%a(): Error Read Block Data and Status = %r\n", __func__, Status));\r
+      DEBUG ((DEBUG_BLKIO, "%a(): Error Read Block Data and Status = %r\n", __func__, Status));\r
       MmcStopTransmission (MmcHost);\r
       return Status;\r
     }\r
     Status = MmcNotifyState (MmcHostInstance, MmcProgrammingState);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "%a() : Error MmcProgrammingState\n", __func__));\r
+      DEBUG ((DEBUG_ERROR, "%a() : Error MmcProgrammingState\n", __func__));\r
       return Status;\r
     }\r
   } else {\r
     // Write Data\r
     Status = MmcHost->WriteBlockData (MmcHost, Lba, BufferSize, Buffer);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_BLKIO, "%a(): Error Write Block Data and Status = %r\n", __func__, Status));\r
+      DEBUG ((DEBUG_BLKIO, "%a(): Error Write Block Data and Status = %r\n", __func__, Status));\r
       MmcStopTransmission (MmcHost);\r
       return Status;\r
     }\r
@@ -209,14 +209,14 @@ MmcTransferBlock (
   if (BufferSize > This->Media->BlockSize) {\r
     Status = MmcHost->SendCommand (MmcHost, MMC_CMD12, 0);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_BLKIO, "%a(): Error and Status:%r\n", __func__, Status));\r
+      DEBUG ((DEBUG_BLKIO, "%a(): Error and Status:%r\n", __func__, Status));\r
     }\r
     MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1b, Response);\r
   }\r
 \r
   Status = MmcNotifyState (MmcHostInstance, MmcTransferState);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIoBlocks() : Error MmcTransferState\n"));\r
+    DEBUG ((DEBUG_ERROR, "MmcIoBlocks() : Error MmcTransferState\n"));\r
     return Status;\r
   }\r
   return Status;\r
@@ -318,7 +318,7 @@ MmcIoBlocks (
     }\r
 \r
     if (0 == Timeout) {\r
-      DEBUG ((EFI_D_ERROR, "The Card is busy\n"));\r
+      DEBUG ((DEBUG_ERROR, "The Card is busy\n"));\r
       return EFI_NOT_READY;\r
     }\r
 \r
@@ -346,7 +346,7 @@ MmcIoBlocks (
     }\r
     Status = MmcTransferBlock (This, Cmd, Transfer, MediaId, Lba, ConsumeSize, Buffer);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "%a(): Failed to transfer block and Status:%r\n", __func__, Status));\r
+      DEBUG ((DEBUG_ERROR, "%a(): Failed to transfer block and Status:%r\n", __func__, Status));\r
     }\r
 \r
     RemainingBlock -= BlockCount;\r
index 36b45e6e69e412392b6a895f75aed20932790946..3f23a13c8bc9dd2b62186680f5d5f0da1bdcd89d 100644 (file)
@@ -20,12 +20,12 @@ PrintCID (
   IN UINT32* Cid\r
   )\r
 {\r
-  DEBUG ((EFI_D_ERROR, "- PrintCID\n"));\r
-  DEBUG ((EFI_D_ERROR, "\t- Manufacturing date: %d/%d\n", (Cid[0] >> 8) & 0xF, (Cid[0] >> 12) & 0xFF));\r
-  DEBUG ((EFI_D_ERROR, "\t- Product serial number: 0x%X%X\n", Cid[1] & 0xFFFFFF, (Cid[0] >> 24) & 0xFF));\r
-  DEBUG ((EFI_D_ERROR, "\t- Product revision: %d\n", Cid[1] >> 24));\r
-  //DEBUG ((EFI_D_ERROR, "\t- Product name: %s\n", (char*)(Cid + 2)));\r
-  DEBUG ((EFI_D_ERROR, "\t- OEM ID: %c%c\n", (Cid[3] >> 8) & 0xFF, (Cid[3] >> 16) & 0xFF));\r
+  DEBUG ((DEBUG_ERROR, "- PrintCID\n"));\r
+  DEBUG ((DEBUG_ERROR, "\t- Manufacturing date: %d/%d\n", (Cid[0] >> 8) & 0xF, (Cid[0] >> 12) & 0xFF));\r
+  DEBUG ((DEBUG_ERROR, "\t- Product serial number: 0x%X%X\n", Cid[1] & 0xFFFFFF, (Cid[0] >> 24) & 0xFF));\r
+  DEBUG ((DEBUG_ERROR, "\t- Product revision: %d\n", Cid[1] >> 24));\r
+  //DEBUG ((DEBUG_ERROR, "\t- Product name: %s\n", (char*)(Cid + 2)));\r
+  DEBUG ((DEBUG_ERROR, "\t- OEM ID: %c%c\n", (Cid[3] >> 8) & 0xFF, (Cid[3] >> 16) & 0xFF));\r
 }\r
 \r
 \r
@@ -37,31 +37,31 @@ PrintCSD (
   UINTN Value;\r
 \r
   if (((Csd[2] >> 30) & 0x3) == 0) {\r
-    DEBUG ((EFI_D_ERROR, "- PrintCSD Version 1.01-1.10/Version 2.00/Standard Capacity\n"));\r
+    DEBUG ((DEBUG_ERROR, "- PrintCSD Version 1.01-1.10/Version 2.00/Standard Capacity\n"));\r
   } else if (((Csd[2] >> 30) & 0x3) == 1) {\r
-    DEBUG ((EFI_D_ERROR, "- PrintCSD Version 2.00/High Capacity\n"));\r
+    DEBUG ((DEBUG_ERROR, "- PrintCSD Version 2.00/High Capacity\n"));\r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "- PrintCSD Version Higher than v3.3\n"));\r
+    DEBUG ((DEBUG_ERROR, "- PrintCSD Version Higher than v3.3\n"));\r
   }\r
 \r
-  DEBUG ((EFI_D_ERROR, "\t- Supported card command class: 0x%X\n", MMC_CSD_GET_CCC (Csd)));\r
-  DEBUG ((EFI_D_ERROR, "\t- Speed: %a %a\n",mStrValue[(MMC_CSD_GET_TRANSPEED (Csd) >> 3) & 0xF],mStrUnit[MMC_CSD_GET_TRANSPEED (Csd) & 7]));\r
-  DEBUG ((EFI_D_ERROR, "\t- Maximum Read Data Block: %d\n",2 << (MMC_CSD_GET_READBLLEN (Csd)-1)));\r
-  DEBUG ((EFI_D_ERROR, "\t- Maximum Write Data Block: %d\n",2 << (MMC_CSD_GET_WRITEBLLEN (Csd)-1)));\r
+  DEBUG ((DEBUG_ERROR, "\t- Supported card command class: 0x%X\n", MMC_CSD_GET_CCC (Csd)));\r
+  DEBUG ((DEBUG_ERROR, "\t- Speed: %a %a\n",mStrValue[(MMC_CSD_GET_TRANSPEED (Csd) >> 3) & 0xF],mStrUnit[MMC_CSD_GET_TRANSPEED (Csd) & 7]));\r
+  DEBUG ((DEBUG_ERROR, "\t- Maximum Read Data Block: %d\n",2 << (MMC_CSD_GET_READBLLEN (Csd)-1)));\r
+  DEBUG ((DEBUG_ERROR, "\t- Maximum Write Data Block: %d\n",2 << (MMC_CSD_GET_WRITEBLLEN (Csd)-1)));\r
 \r
   if (!MMC_CSD_GET_FILEFORMATGRP (Csd)) {\r
     Value = MMC_CSD_GET_FILEFORMAT (Csd);\r
     if (Value == 0) {\r
-      DEBUG ((EFI_D_ERROR, "\t- Format (0): Hard disk-like file system with partition table\n"));\r
+      DEBUG ((DEBUG_ERROR, "\t- Format (0): Hard disk-like file system with partition table\n"));\r
     } else if (Value == 1) {\r
-      DEBUG ((EFI_D_ERROR, "\t- Format (1): DOS FAT (floppy-like) with boot sector only (no partition table)\n"));\r
+      DEBUG ((DEBUG_ERROR, "\t- Format (1): DOS FAT (floppy-like) with boot sector only (no partition table)\n"));\r
     } else if (Value == 2) {\r
-      DEBUG ((EFI_D_ERROR, "\t- Format (2): Universal File Format\n"));\r
+      DEBUG ((DEBUG_ERROR, "\t- Format (2): Universal File Format\n"));\r
     } else {\r
-      DEBUG ((EFI_D_ERROR, "\t- Format (3): Others/Unknown\n"));\r
+      DEBUG ((DEBUG_ERROR, "\t- Format (3): Others/Unknown\n"));\r
     }\r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "\t- Format: Reserved\n"));\r
+    DEBUG ((DEBUG_ERROR, "\t- Format: Reserved\n"));\r
   }\r
 }\r
 \r
@@ -70,9 +70,9 @@ PrintRCA (
   IN UINT32 Rca\r
   )\r
 {\r
-  DEBUG ((EFI_D_ERROR, "- PrintRCA: 0x%X\n", Rca));\r
-  DEBUG ((EFI_D_ERROR, "\t- Status: 0x%X\n", Rca & 0xFFFF));\r
-  DEBUG ((EFI_D_ERROR, "\t- RCA: 0x%X\n", (Rca >> 16) & 0xFFFF));\r
+  DEBUG ((DEBUG_ERROR, "- PrintRCA: 0x%X\n", Rca));\r
+  DEBUG ((DEBUG_ERROR, "\t- Status: 0x%X\n", Rca & 0xFFFF));\r
+  DEBUG ((DEBUG_ERROR, "\t- RCA: 0x%X\n", (Rca >> 16) & 0xFFFF));\r
 }\r
 \r
 VOID\r
@@ -102,18 +102,18 @@ PrintOCR (
     Volts++;\r
   }\r
 \r
-  DEBUG ((EFI_D_ERROR, "- PrintOCR Ocr (0x%X)\n",Ocr));\r
-  DEBUG ((EFI_D_ERROR, "\t- Card operating voltage: %d.%d to %d.%d\n", MinV/10, MinV % 10, MaxV/10, MaxV % 10));\r
+  DEBUG ((DEBUG_ERROR, "- PrintOCR Ocr (0x%X)\n",Ocr));\r
+  DEBUG ((DEBUG_ERROR, "\t- Card operating voltage: %d.%d to %d.%d\n", MinV/10, MinV % 10, MaxV/10, MaxV % 10));\r
   if (((Ocr >> 29) & 3) == 0) {\r
-    DEBUG ((EFI_D_ERROR, "\t- AccessMode: Byte Mode\n"));\r
+    DEBUG ((DEBUG_ERROR, "\t- AccessMode: Byte Mode\n"));\r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "\t- AccessMode: Block Mode (0x%X)\n", ((Ocr >> 29) & 3)));\r
+    DEBUG ((DEBUG_ERROR, "\t- AccessMode: Block Mode (0x%X)\n", ((Ocr >> 29) & 3)));\r
   }\r
 \r
   if (Ocr & MMC_OCR_POWERUP) {\r
-    DEBUG ((EFI_D_ERROR, "\t- PowerUp\n"));\r
+    DEBUG ((DEBUG_ERROR, "\t- PowerUp\n"));\r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "\t- Voltage Not Supported\n"));\r
+    DEBUG ((DEBUG_ERROR, "\t- Voltage Not Supported\n"));\r
   }\r
 }\r
 \r
@@ -122,41 +122,41 @@ PrintResponseR1 (
   IN  UINT32 Response\r
   )\r
 {\r
-  DEBUG ((EFI_D_INFO, "Response: 0x%X\n", Response));\r
+  DEBUG ((DEBUG_INFO, "Response: 0x%X\n", Response));\r
   if (Response & MMC_R0_READY_FOR_DATA) {\r
-    DEBUG ((EFI_D_INFO, "\t- READY_FOR_DATA\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- READY_FOR_DATA\n"));\r
   }\r
 \r
   switch ((Response >> 9) & 0xF) {\r
   case 0:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Idle\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Idle\n"));\r
     break;\r
   case 1:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Ready\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Ready\n"));\r
     break;\r
   case 2:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Ident\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Ident\n"));\r
     break;\r
   case 3:\r
-    DEBUG ((EFI_D_INFO, "\t- State: StandBy\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: StandBy\n"));\r
     break;\r
   case 4:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Tran\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Tran\n"));\r
     break;\r
   case 5:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Data\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Data\n"));\r
     break;\r
   case 6:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Rcv\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Rcv\n"));\r
     break;\r
   case 7:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Prg\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Prg\n"));\r
     break;\r
   case 8:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Dis\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Dis\n"));\r
     break;\r
   default:\r
-    DEBUG ((EFI_D_INFO, "\t- State: Reserved\n"));\r
+    DEBUG ((DEBUG_INFO, "\t- State: Reserved\n"));\r
     break;\r
   }\r
 }\r
index 4dc0be125c6357baf781d4a212f68d47eb863737..0df948426fb32d0f20069282bca9818ec528202a 100755 (executable)
@@ -81,16 +81,16 @@ EmmcGetDeviceState (
   RCA = MmcHostInstance->CardInfo.RCA << RCA_SHIFT_OFFSET;\r
   Status = Host->SendCommand (Host, MMC_CMD13, RCA);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcGetDeviceState(): Failed to get card status, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcGetDeviceState(): Failed to get card status, Status=%r.\n", Status));\r
     return Status;\r
   }\r
   Status = Host->ReceiveResponse (Host, MMC_RESPONSE_TYPE_R1, &Data);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcGetDeviceState(): Failed to get response of CMD13, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcGetDeviceState(): Failed to get response of CMD13, Status=%r.\n", Status));\r
     return Status;\r
   }\r
   if (Data & EMMC_SWITCH_ERROR) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcGetDeviceState(): Failed to switch expected mode, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcGetDeviceState(): Failed to switch expected mode, Status=%r.\n", Status));\r
     return EFI_DEVICE_ERROR;\r
   }\r
   *State = DEVICE_STATE(Data);\r
@@ -116,14 +116,14 @@ EmmcSetEXTCSD (
              EMMC_CMD6_ARG_VALUE(Value) | EMMC_CMD6_ARG_CMD_SET(1);\r
   Status = Host->SendCommand (Host, MMC_CMD6, Argument);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcSetEXTCSD(): Failed to send CMD6, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcSetEXTCSD(): Failed to send CMD6, Status=%r.\n", Status));\r
     return Status;\r
   }\r
   // Make sure device exiting prog mode\r
   do {\r
     Status = EmmcGetDeviceState (MmcHostInstance, &State);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "EmmcSetEXTCSD(): Failed to get device state, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "EmmcSetEXTCSD(): Failed to get device state, Status=%r.\n", Status));\r
       return Status;\r
     }\r
   } while (State == EMMC_PRG_STATE);\r
@@ -150,13 +150,13 @@ EmmcIdentificationMode (
   // Fetch card identity register\r
   Status = Host->SendCommand (Host, MMC_CMD2, 0);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): Failed to send CMD2, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): Failed to send CMD2, Status=%r.\n", Status));\r
     return Status;\r
   }\r
 \r
   Status = Host->ReceiveResponse (Host, MMC_RESPONSE_TYPE_R2, (UINT32 *)&(MmcHostInstance->CardInfo.CIDData));\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): CID retrieval error, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): CID retrieval error, Status=%r.\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -165,41 +165,41 @@ EmmcIdentificationMode (
   RCA = MmcHostInstance->CardInfo.RCA << RCA_SHIFT_OFFSET;\r
   Status = Host->SendCommand (Host, MMC_CMD3, RCA);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): RCA set error, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): RCA set error, Status=%r.\n", Status));\r
     return Status;\r
   }\r
 \r
   // Fetch card specific data\r
   Status = Host->SendCommand (Host, MMC_CMD9, RCA);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): Failed to send CMD9, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): Failed to send CMD9, Status=%r.\n", Status));\r
     return Status;\r
   }\r
 \r
   Status = Host->ReceiveResponse (Host, MMC_RESPONSE_TYPE_R2, (UINT32 *)&(MmcHostInstance->CardInfo.CSDData));\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): CSD retrieval error, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): CSD retrieval error, Status=%r.\n", Status));\r
     return Status;\r
   }\r
 \r
   // Select the card\r
   Status = Host->SendCommand (Host, MMC_CMD7, RCA);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): Card selection error, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): Card selection error, Status=%r.\n", Status));\r
   }\r
 \r
   if (MMC_HOST_HAS_SETIOS(Host)) {\r
     // Set 1-bit bus width\r
     Status = Host->SetIos (Host, 0, 1, EMMCBACKWARD);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): Set 1-bit bus width error, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): Set 1-bit bus width error, Status=%r.\n", Status));\r
       return Status;\r
     }\r
 \r
     // Set 1-bit bus width for EXTCSD\r
     Status = EmmcSetEXTCSD (MmcHostInstance, EXTCSD_BUS_WIDTH, EMMC_BUS_WIDTH_1BIT);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): Set extcsd bus width error, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): Set extcsd bus width error, Status=%r.\n", Status));\r
       return Status;\r
     }\r
   }\r
@@ -211,12 +211,12 @@ EmmcIdentificationMode (
   }\r
   Status = Host->SendCommand (Host, MMC_CMD8, 0);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): ECSD fetch error, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): ECSD fetch error, Status=%r.\n", Status));\r
   }\r
 \r
   Status = Host->ReadBlockData (Host, 0, 512, (UINT32 *)MmcHostInstance->CardInfo.ECSDData);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): ECSD read error, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): ECSD read error, Status=%r.\n", Status));\r
     goto FreePageExit;\r
   }\r
 \r
@@ -224,7 +224,7 @@ EmmcIdentificationMode (
   do {\r
     Status = EmmcGetDeviceState (MmcHostInstance, &State);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "EmmcIdentificationMode(): Failed to get device state, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "EmmcIdentificationMode(): Failed to get device state, Status=%r.\n", Status));\r
       goto FreePageExit;\r
     }\r
   } while (State == EMMC_DATA_STATE);\r
@@ -353,14 +353,14 @@ InitializeSdMmcDevice (
   CmdArg = MmcHostInstance->CardInfo.RCA << 16;\r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD9, CmdArg);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG((EFI_D_ERROR, "InitializeSdMmcDevice(MMC_CMD9): Error, Status=%r\n", Status));\r
+    DEBUG((DEBUG_ERROR, "InitializeSdMmcDevice(MMC_CMD9): Error, Status=%r\n", Status));\r
     return Status;\r
   }\r
 \r
   // Read Response\r
   Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_CSD, Response);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG((EFI_D_ERROR, "InitializeSdMmcDevice(): Failed to receive CSD, Status=%r\n", Status));\r
+    DEBUG((DEBUG_ERROR, "InitializeSdMmcDevice(): Failed to receive CSD, Status=%r\n", Status));\r
     return Status;\r
   }\r
   PrintCSD (Response);\r
@@ -395,7 +395,7 @@ InitializeSdMmcDevice (
   CmdArg = MmcHostInstance->CardInfo.RCA << 16;\r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD7, CmdArg);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG((EFI_D_ERROR, "InitializeSdMmcDevice(MMC_CMD7): Error and Status = %r\n", Status));\r
+    DEBUG((DEBUG_ERROR, "InitializeSdMmcDevice(MMC_CMD7): Error and Status = %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -416,38 +416,38 @@ InitializeSdMmcDevice (
   /* SCR */\r
   Status = MmcHost->SendCommand (MmcHost, MMC_ACMD51, 0);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a(MMC_ACMD51): Error and Status = %r\n", __func__, Status));\r
+    DEBUG ((DEBUG_ERROR, "%a(MMC_ACMD51): Error and Status = %r\n", __func__, Status));\r
     return Status;\r
   } else {\r
     Status = MmcHost->ReadBlockData (MmcHost, 0, 8, Buffer);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "%a(MMC_ACMD51): ReadBlockData Error and Status = %r\n", __func__, Status));\r
+      DEBUG ((DEBUG_ERROR, "%a(MMC_ACMD51): ReadBlockData Error and Status = %r\n", __func__, Status));\r
       return Status;\r
     }\r
     CopyMem (&Scr, Buffer, 8);\r
     if (Scr.SD_SPEC == 2) {\r
       if (Scr.SD_SPEC3 == 1) {\r
-       if (Scr.SD_SPEC4 == 1) {\r
-          DEBUG ((EFI_D_INFO, "Found SD Card for Spec Version 4.xx\n"));\r
-       } else {\r
-          DEBUG ((EFI_D_INFO, "Found SD Card for Spec Version 3.0x\n"));\r
-       }\r
+  if (Scr.SD_SPEC4 == 1) {\r
+          DEBUG ((DEBUG_INFO, "Found SD Card for Spec Version 4.xx\n"));\r
+  } else {\r
+          DEBUG ((DEBUG_INFO, "Found SD Card for Spec Version 3.0x\n"));\r
+  }\r
       } else {\r
-       if (Scr.SD_SPEC4 == 0) {\r
-          DEBUG ((EFI_D_INFO, "Found SD Card for Spec Version 2.0\n"));\r
-       } else {\r
-         DEBUG ((EFI_D_ERROR, "Found invalid SD Card\n"));\r
-       }\r
+  if (Scr.SD_SPEC4 == 0) {\r
+          DEBUG ((DEBUG_INFO, "Found SD Card for Spec Version 2.0\n"));\r
+  } else {\r
+    DEBUG ((DEBUG_ERROR, "Found invalid SD Card\n"));\r
+  }\r
       }\r
     } else {\r
       if ((Scr.SD_SPEC3 == 0) && (Scr.SD_SPEC4 == 0)) {\r
         if (Scr.SD_SPEC == 1) {\r
-         DEBUG ((EFI_D_INFO, "Found SD Card for Spec Version 1.10\n"));\r
-       } else {\r
-         DEBUG ((EFI_D_INFO, "Found SD Card for Spec Version 1.0\n"));\r
-       }\r
+    DEBUG ((DEBUG_INFO, "Found SD Card for Spec Version 1.10\n"));\r
+  } else {\r
+    DEBUG ((DEBUG_INFO, "Found SD Card for Spec Version 1.0\n"));\r
+  }\r
       } else {\r
-        DEBUG ((EFI_D_ERROR, "Found invalid SD Card\n"));\r
+        DEBUG ((DEBUG_ERROR, "Found invalid SD Card\n"));\r
       }\r
     }\r
   }\r
@@ -543,19 +543,19 @@ MmcIdentificationMode (
     // Initialize the MMC Host HW\r
     Status = MmcNotifyState (MmcHostInstance, MmcHwInitializationState);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Error MmcHwInitializationState, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Error MmcHwInitializationState, Status=%r.\n", Status));\r
       return Status;\r
     }\r
   }\r
 \r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD0, 0);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode(MMC_CMD0): Error, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode(MMC_CMD0): Error, Status=%r.\n", Status));\r
     return Status;\r
   }\r
   Status = MmcNotifyState (MmcHostInstance, MmcIdleState);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Error MmcIdleState, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Error MmcIdleState, Status=%r.\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -568,14 +568,14 @@ MmcIdentificationMode (
       break;\r
     Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_OCR, (UINT32 *)&OcrResponse);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Failed to receive OCR, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Failed to receive OCR, Status=%r.\n", Status));\r
       return Status;\r
     }\r
     Timeout--;\r
   } while (!OcrResponse.Ocr.PowerUp && (Timeout > 0));\r
   if (Status == EFI_SUCCESS) {\r
     if (!OcrResponse.Ocr.PowerUp) {\r
-      DEBUG ((EFI_D_ERROR, "MmcIdentificationMode(MMC_CMD1): Card initialisation failure, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "MmcIdentificationMode(MMC_CMD1): Card initialisation failure, Status=%r.\n", Status));\r
       return EFI_DEVICE_ERROR;\r
     }\r
     OcrResponse.Ocr.PowerUp = 0;\r
@@ -595,7 +595,7 @@ MmcIdentificationMode (
   // Are we using SDIO ?\r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD5, 0);\r
   if (Status == EFI_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode(MMC_CMD5): Error - SDIO not supported, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode(MMC_CMD5): Error - SDIO not supported, Status=%r.\n", Status));\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
@@ -603,21 +603,21 @@ MmcIdentificationMode (
   CmdArg = (0x0UL << 12 | BIT8 | 0xCEUL << 0);\r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD8, CmdArg);\r
   if (Status == EFI_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "Card is SD2.0 => Supports high capacity\n"));\r
+    DEBUG ((DEBUG_ERROR, "Card is SD2.0 => Supports high capacity\n"));\r
     IsHCS = TRUE;\r
     Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R7, Response);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Failed to receive response to CMD8, Status=%r.\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Failed to receive response to CMD8, Status=%r.\n", Status));\r
       return Status;\r
     }\r
     PrintResponseR1 (Response[0]);\r
     // Check if it is valid response\r
     if (Response[0] != CmdArg) {\r
-      DEBUG ((EFI_D_ERROR, "The Card is not usable\n"));\r
+      DEBUG ((DEBUG_ERROR, "The Card is not usable\n"));\r
       return EFI_UNSUPPORTED;\r
     }\r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "Not a SD2.0 Card\n"));\r
+    DEBUG ((DEBUG_ERROR, "Not a SD2.0 Card\n"));\r
   }\r
 \r
   // We need to wait for the MMC or SD card is ready => (gCardInfo.OCRData.PowerUp == 1)\r
@@ -626,7 +626,7 @@ MmcIdentificationMode (
     // SD Card or MMC Card ? CMD55 indicates to the card that the next command is an application specific command\r
     Status = MmcHost->SendCommand (MmcHost, MMC_CMD55, 0);\r
     if (Status == EFI_SUCCESS) {\r
-      DEBUG ((EFI_D_INFO, "Card should be SD\n"));\r
+      DEBUG ((DEBUG_INFO, "Card should be SD\n"));\r
       if (IsHCS) {\r
         MmcHostInstance->CardInfo.CardType = SD_CARD_2;\r
       } else {\r
@@ -642,20 +642,20 @@ MmcIdentificationMode (
       if (!EFI_ERROR (Status)) {\r
         Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_OCR, Response);\r
         if (EFI_ERROR (Status)) {\r
-          DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Failed to receive OCR, Status=%r.\n", Status));\r
+          DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Failed to receive OCR, Status=%r.\n", Status));\r
           return Status;\r
         }\r
         ((UINT32 *) &(MmcHostInstance->CardInfo.OCRData))[0] = Response[0];\r
       }\r
     } else {\r
-      DEBUG ((EFI_D_INFO, "Card should be MMC\n"));\r
+      DEBUG ((DEBUG_INFO, "Card should be MMC\n"));\r
       MmcHostInstance->CardInfo.CardType = MMC_CARD;\r
 \r
       Status = MmcHost->SendCommand (MmcHost, MMC_CMD1, 0x800000);\r
       if (!EFI_ERROR (Status)) {\r
         Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_OCR, Response);\r
         if (EFI_ERROR (Status)) {\r
-          DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Failed to receive OCR, Status=%r.\n", Status));\r
+          DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Failed to receive OCR, Status=%r.\n", Status));\r
           return Status;\r
         }\r
         ((UINT32 *) &(MmcHostInstance->CardInfo.OCRData))[0] = Response[0];\r
@@ -669,7 +669,7 @@ MmcIdentificationMode (
       } else {\r
         if ((MmcHostInstance->CardInfo.CardType == SD_CARD_2) && (MmcHostInstance->CardInfo.OCRData.AccessMode & BIT1)) {\r
           MmcHostInstance->CardInfo.CardType = SD_CARD_2_HIGH;\r
-          DEBUG ((EFI_D_ERROR, "High capacity card.\n"));\r
+          DEBUG ((DEBUG_ERROR, "High capacity card.\n"));\r
         }\r
         break;  // The MMC/SD card is ready. Continue the Identification Mode\r
       }\r
@@ -680,7 +680,7 @@ MmcIdentificationMode (
   }\r
 \r
   if (Timeout == 0) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode(): No Card\n"));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode(): No Card\n"));\r
     return EFI_NO_MEDIA;\r
   } else {\r
     PrintOCR (Response[0]);\r
@@ -688,18 +688,18 @@ MmcIdentificationMode (
 \r
   Status = MmcNotifyState (MmcHostInstance, MmcReadyState);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Error MmcReadyState\n"));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Error MmcReadyState\n"));\r
     return Status;\r
   }\r
 \r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD2, 0);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode(MMC_CMD2): Error\n"));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode(MMC_CMD2): Error\n"));\r
     return Status;\r
   }\r
   Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_CID, Response);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Failed to receive CID, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Failed to receive CID, Status=%r.\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -707,7 +707,7 @@ MmcIdentificationMode (
 \r
   Status = MmcHost->NotifyState (MmcHost, MmcIdentificationState);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Error MmcIdentificationState\n"));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Error MmcIdentificationState\n"));\r
     return Status;\r
   }\r
 \r
@@ -719,13 +719,13 @@ MmcIdentificationMode (
   CmdArg = 1;\r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD3, CmdArg);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode(MMC_CMD3): Error\n"));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode(MMC_CMD3): Error\n"));\r
     return Status;\r
   }\r
 \r
   Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_RCA, Response);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Failed to receive RCA, Status=%r.\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Failed to receive RCA, Status=%r.\n", Status));\r
     return Status;\r
   }\r
   PrintRCA (Response[0]);\r
@@ -738,7 +738,7 @@ MmcIdentificationMode (
   }\r
   Status = MmcNotifyState (MmcHostInstance, MmcStandByState);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "MmcIdentificationMode() : Error MmcStandByState\n"));\r
+    DEBUG ((DEBUG_ERROR, "MmcIdentificationMode() : Error MmcStandByState\n"));\r
     return Status;\r
   }\r
 \r
@@ -759,13 +759,13 @@ InitializeMmcDevice (
 \r
   Status = MmcIdentificationMode (MmcHostInstance);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG((EFI_D_ERROR, "InitializeMmcDevice(): Error in Identification Mode, Status=%r\n", Status));\r
+    DEBUG((DEBUG_ERROR, "InitializeMmcDevice(): Error in Identification Mode, Status=%r\n", Status));\r
     return Status;\r
   }\r
 \r
   Status = MmcNotifyState (MmcHostInstance, MmcTransferState);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG((EFI_D_ERROR, "InitializeMmcDevice(): Error MmcTransferState, Status=%r\n", Status));\r
+    DEBUG((DEBUG_ERROR, "InitializeMmcDevice(): Error MmcTransferState, Status=%r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -781,7 +781,7 @@ InitializeMmcDevice (
   // Set Block Length\r
   Status = MmcHost->SendCommand (MmcHost, MMC_CMD16, MmcHostInstance->BlockIo.Media->BlockSize);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG((EFI_D_ERROR, "InitializeMmcDevice(MMC_CMD16): Error MmcHostInstance->BlockIo.Media->BlockSize: %d and Error = %r\n",\r
+    DEBUG((DEBUG_ERROR, "InitializeMmcDevice(MMC_CMD16): Error MmcHostInstance->BlockIo.Media->BlockSize: %d and Error = %r\n",\r
                         MmcHostInstance->BlockIo.Media->BlockSize, Status));\r
     return Status;\r
   }\r
@@ -790,7 +790,7 @@ InitializeMmcDevice (
   if (MmcHostInstance->CardInfo.CardType == MMC_CARD) {\r
     Status = MmcHost->SendCommand (MmcHost, MMC_CMD23, BlockCount);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG((EFI_D_ERROR, "InitializeMmcDevice(MMC_CMD23): Error, Status=%r\n", Status));\r
+      DEBUG((DEBUG_ERROR, "InitializeMmcDevice(MMC_CMD23): Error, Status=%r\n", Status));\r
       return Status;\r
     }\r
   }\r