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
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
//\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
//\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
&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
&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
);\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
\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
//\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
//\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