]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c
MdeModulePkg: Change use of EFI_D_* to DEBUG_*
[mirror_edk2.git] / MdeModulePkg / Bus / I2c / I2cDxe / I2cHost.c
index 95294c9c9891e6b4d28583e318909aff44805055..8dec43bcb1c9c6adbf62c764beb39c6179240c03 100644 (file)
@@ -343,7 +343,7 @@ I2cHostDriverStart (
                   EFI_OPEN_PROTOCOL_BY_DRIVER\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: Open I2C bus configuration error, Status = %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: Open I2C bus configuration error, Status = %r\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -359,7 +359,7 @@ I2cHostDriverStart (
                   EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: Open I2C master error, Status = %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: Open I2C master error, Status = %r\n", Status));\r
     goto Exit;\r
   }\r
 \r
@@ -368,7 +368,7 @@ I2cHostDriverStart (
   //\r
   I2cHostContext = AllocateZeroPool (sizeof (I2C_HOST_CONTEXT));\r
   if (I2cHostContext == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: there is no enough memory to allocate.\n"));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: there is no enough memory to allocate.\n"));\r
     Status = EFI_OUT_OF_RESOURCES;\r
     goto Exit;\r
   }\r
@@ -387,7 +387,7 @@ I2cHostDriverStart (
   //\r
   Status = I2cMaster->Reset (I2cMaster);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: I2C controller reset failed!\n"));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: I2C controller reset failed!\n"));\r
     goto Exit;\r
   }\r
 \r
@@ -402,7 +402,7 @@ I2cHostDriverStart (
                   &I2cHostContext->I2cEvent\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: create complete event error, Status = %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: create complete event error, Status = %r\n", Status));\r
     goto Exit;\r
   }\r
 \r
@@ -417,7 +417,7 @@ I2cHostDriverStart (
                   &I2cHostContext->I2cBusConfigurationEvent\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: create bus available event error, Status = %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: create bus available event error, Status = %r\n", Status));\r
     goto Exit;\r
   }\r
 \r
@@ -438,7 +438,7 @@ I2cHostDriverStart (
                   );\r
 Exit:\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: Start() function failed, Status = %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: Start() function failed, Status = %r\n", Status));\r
     if (I2cBusConfigurationManagement != NULL) {\r
       gBS->CloseProtocol (\r
                       Controller,\r
@@ -514,7 +514,7 @@ I2cHostDriverStop (
 \r
   TplPrevious = EfiGetCurrentTpl ();\r
   if (TplPrevious > TPL_I2C_SYNC) {\r
-    DEBUG ((EFI_D_ERROR, "I2cHost: TPL %d is too high in Stop.\n", TplPrevious));\r
+    DEBUG ((DEBUG_ERROR, "I2cHost: TPL %d is too high in Stop.\n", TplPrevious));\r
     return EFI_DEVICE_ERROR;\r
   }\r
 \r
@@ -982,7 +982,7 @@ I2cHostQueueRequest (
   //\r
   TplPrevious = EfiGetCurrentTpl ();\r
   if ((TplPrevious > TPL_I2C_SYNC) || ((Event == NULL) && (TplPrevious > TPL_CALLBACK))) {\r
-    DEBUG ((EFI_D_ERROR, "ERROR - TPL %d is too high!\n", TplPrevious));\r
+    DEBUG ((DEBUG_ERROR, "ERROR - TPL %d is too high!\n", TplPrevious));\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -991,7 +991,7 @@ I2cHostQueueRequest (
   //\r
   I2cRequest = AllocateZeroPool (sizeof (I2C_REQUEST));\r
   if (I2cRequest == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "WARNING - Failed to allocate I2C_REQUEST!\n"));\r
+    DEBUG ((DEBUG_ERROR, "WARNING - Failed to allocate I2C_REQUEST!\n"));\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r