MdeModulePkg: Change use of EFI_D_* to DEBUG_*
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: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
917e98f3e5
commit
87000d7708
@@ -441,21 +441,21 @@ UfsPeimParsingSenseKeys (
|
||||
(SenseData->Addnl_Sense_Code == EFI_SCSI_ASC_NO_MEDIA)) {
|
||||
Media->MediaPresent = FALSE;
|
||||
*NeedRetry = FALSE;
|
||||
DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Is No Media\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UfsBlockIoPei: Is No Media\n"));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
if ((SenseData->Sense_Key == EFI_SCSI_SK_UNIT_ATTENTION) &&
|
||||
(SenseData->Addnl_Sense_Code == EFI_SCSI_ASC_MEDIA_CHANGE)) {
|
||||
*NeedRetry = TRUE;
|
||||
DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Is Media Change\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UfsBlockIoPei: Is Media Change\n"));
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
if ((SenseData->Sense_Key == EFI_SCSI_SK_UNIT_ATTENTION) &&
|
||||
(SenseData->Addnl_Sense_Code == EFI_SCSI_ASC_RESET)) {
|
||||
*NeedRetry = TRUE;
|
||||
DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Was Reset Before\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UfsBlockIoPei: Was Reset Before\n"));
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -463,13 +463,13 @@ UfsPeimParsingSenseKeys (
|
||||
((SenseData->Sense_Key == EFI_SCSI_SK_NOT_READY) &&
|
||||
(SenseData->Addnl_Sense_Code == EFI_SCSI_ASC_MEDIA_UPSIDE_DOWN))) {
|
||||
*NeedRetry = FALSE;
|
||||
DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Media Error\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UfsBlockIoPei: Media Error\n"));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
if (SenseData->Sense_Key == EFI_SCSI_SK_HARDWARE_ERROR) {
|
||||
*NeedRetry = FALSE;
|
||||
DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Hardware Error\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UfsBlockIoPei: Hardware Error\n"));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
@@ -477,12 +477,12 @@ UfsPeimParsingSenseKeys (
|
||||
(SenseData->Addnl_Sense_Code == EFI_SCSI_ASC_NOT_READY) &&
|
||||
(SenseData->Addnl_Sense_Code_Qualifier == EFI_SCSI_ASCQ_IN_PROGRESS)) {
|
||||
*NeedRetry = TRUE;
|
||||
DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Was Reset Before\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UfsBlockIoPei: Was Reset Before\n"));
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
*NeedRetry = FALSE;
|
||||
DEBUG ((EFI_D_VERBOSE, "UfsBlockIoPei: Sense Key = 0x%x ASC = 0x%x!\n", SenseData->Sense_Key, SenseData->Addnl_Sense_Code));
|
||||
DEBUG ((DEBUG_VERBOSE, "UfsBlockIoPei: Sense Key = 0x%x ASC = 0x%x!\n", SenseData->Sense_Key, SenseData->Addnl_Sense_Code));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
@@ -1097,7 +1097,7 @@ InitializeUfsBlockIoPeim (
|
||||
//
|
||||
Status = UfsControllerInit (Private);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "UfsDevicePei: Host Controller Initialization Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "UfsDevicePei: Host Controller Initialization Error, Status = %r\n", Status));
|
||||
Controller++;
|
||||
continue;
|
||||
}
|
||||
@@ -1109,7 +1109,7 @@ InitializeUfsBlockIoPeim (
|
||||
//
|
||||
Status = UfsExecNopCmds (Private);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Ufs Sending NOP IN command Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Ufs Sending NOP IN command Error, Status = %r\n", Status));
|
||||
Controller++;
|
||||
continue;
|
||||
}
|
||||
@@ -1119,7 +1119,7 @@ InitializeUfsBlockIoPeim (
|
||||
//
|
||||
Status = UfsSetFlag (Private, UfsFlagDevInit);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Ufs Set fDeviceInit Flag Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Ufs Set fDeviceInit Flag Error, Status = %r\n", Status));
|
||||
Controller++;
|
||||
continue;
|
||||
}
|
||||
@@ -1129,7 +1129,7 @@ InitializeUfsBlockIoPeim (
|
||||
//
|
||||
Status = UfsRwDeviceDesc (Private, TRUE, UfsConfigDesc, 0, 0, &Config, sizeof (UFS_CONFIG_DESC));
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Ufs Get Configuration Descriptor Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Ufs Get Configuration Descriptor Error, Status = %r\n", Status));
|
||||
Controller++;
|
||||
continue;
|
||||
}
|
||||
@@ -1137,7 +1137,7 @@ InitializeUfsBlockIoPeim (
|
||||
for (Index = 0; Index < UFS_PEIM_MAX_LUNS; Index++) {
|
||||
if (Config.UnitDescConfParams[Index].LunEn != 0) {
|
||||
Private->Luns.BitMask |= (BIT0 << Index);
|
||||
DEBUG ((EFI_D_INFO, "Ufs %d Lun %d is enabled\n", Controller, Index));
|
||||
DEBUG ((DEBUG_INFO, "Ufs %d Lun %d is enabled\n", Controller, Index));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -80,34 +80,34 @@ DumpUicCmdExecResult (
|
||||
case 0x00:
|
||||
break;
|
||||
case 0x01:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - INVALID_MIB_ATTRIBUTE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - INVALID_MIB_ATTRIBUTE\n"));
|
||||
break;
|
||||
case 0x02:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - INVALID_MIB_ATTRIBUTE_VALUE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - INVALID_MIB_ATTRIBUTE_VALUE\n"));
|
||||
break;
|
||||
case 0x03:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - READ_ONLY_MIB_ATTRIBUTE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - READ_ONLY_MIB_ATTRIBUTE\n"));
|
||||
break;
|
||||
case 0x04:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - WRITE_ONLY_MIB_ATTRIBUTE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - WRITE_ONLY_MIB_ATTRIBUTE\n"));
|
||||
break;
|
||||
case 0x05:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - BAD_INDEX\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - BAD_INDEX\n"));
|
||||
break;
|
||||
case 0x06:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - LOCKED_MIB_ATTRIBUTE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - LOCKED_MIB_ATTRIBUTE\n"));
|
||||
break;
|
||||
case 0x07:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - BAD_TEST_FEATURE_INDEX\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - BAD_TEST_FEATURE_INDEX\n"));
|
||||
break;
|
||||
case 0x08:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - PEER_COMMUNICATION_FAILURE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - PEER_COMMUNICATION_FAILURE\n"));
|
||||
break;
|
||||
case 0x09:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - BUSY\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - BUSY\n"));
|
||||
break;
|
||||
case 0x0A:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC configuration command fails - DME_FAILURE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC configuration command fails - DME_FAILURE\n"));
|
||||
break;
|
||||
default :
|
||||
ASSERT (FALSE);
|
||||
@@ -118,7 +118,7 @@ DumpUicCmdExecResult (
|
||||
case 0x00:
|
||||
break;
|
||||
case 0x01:
|
||||
DEBUG ((EFI_D_VERBOSE, "UIC control command fails - FAILURE\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "UIC control command fails - FAILURE\n"));
|
||||
break;
|
||||
default :
|
||||
ASSERT (FALSE);
|
||||
@@ -140,34 +140,34 @@ DumpQueryResponseResult (
|
||||
{
|
||||
switch (Result) {
|
||||
case 0xF6:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Parameter Not Readable\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Parameter Not Readable\n"));
|
||||
break;
|
||||
case 0xF7:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Parameter Not Writeable\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Parameter Not Writeable\n"));
|
||||
break;
|
||||
case 0xF8:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Parameter Already Written\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Parameter Already Written\n"));
|
||||
break;
|
||||
case 0xF9:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Length\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Invalid Length\n"));
|
||||
break;
|
||||
case 0xFA:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Value\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Invalid Value\n"));
|
||||
break;
|
||||
case 0xFB:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Selector\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Invalid Selector\n"));
|
||||
break;
|
||||
case 0xFC:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Index\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Invalid Index\n"));
|
||||
break;
|
||||
case 0xFD:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Idn\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Invalid Idn\n"));
|
||||
break;
|
||||
case 0xFE:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with Invalid Opcode\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with Invalid Opcode\n"));
|
||||
break;
|
||||
case 0xFF:
|
||||
DEBUG ((EFI_D_VERBOSE, "Query Response with General Failure\n"));
|
||||
DEBUG ((DEBUG_VERBOSE, "Query Response with General Failure\n"));
|
||||
break;
|
||||
default :
|
||||
ASSERT (FALSE);
|
||||
@@ -325,7 +325,7 @@ UfsInitUtpPrdt (
|
||||
|
||||
if ((BufferSize & (BIT0 | BIT1)) != 0) {
|
||||
BufferSize &= ~(BIT0 | BIT1);
|
||||
DEBUG ((EFI_D_WARN, "UfsInitUtpPrdt: The BufferSize [%d] is not dword-aligned!\n", BufferSize));
|
||||
DEBUG ((DEBUG_WARN, "UfsInitUtpPrdt: The BufferSize [%d] is not dword-aligned!\n", BufferSize));
|
||||
}
|
||||
|
||||
if (BufferSize == 0) {
|
||||
@@ -1190,7 +1190,7 @@ UfsExecScsiCmds (
|
||||
// Check the transfer request result.
|
||||
//
|
||||
if (Response->Response != 0) {
|
||||
DEBUG ((EFI_D_ERROR, "UfsExecScsiCmds() fails with Target Failure\n"));
|
||||
DEBUG ((DEBUG_ERROR, "UfsExecScsiCmds() fails with Target Failure\n"));
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
goto Exit;
|
||||
}
|
||||
@@ -1324,7 +1324,7 @@ UfsExecUicCommands (
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
DEBUG ((EFI_D_INFO, "UfsblockioPei: found a attached UFS device\n"));
|
||||
DEBUG ((DEBUG_INFO, "UfsblockioPei: found a attached UFS device\n"));
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
@@ -1577,25 +1577,25 @@ UfsControllerInit (
|
||||
|
||||
Status = UfsEnableHostController (Private);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "UfsDevicePei: Enable Host Controller Fails, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "UfsDevicePei: Enable Host Controller Fails, Status = %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
Status = UfsDeviceDetection (Private);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "UfsDevicePei: Device Detection Fails, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "UfsDevicePei: Device Detection Fails, Status = %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
Status = UfsInitTaskManagementRequestList (Private);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "UfsDevicePei: Task management list initialization Fails, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "UfsDevicePei: Task management list initialization Fails, Status = %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
Status = UfsInitTransferRequestList (Private);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "UfsDevicePei: Transfer list initialization Fails, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "UfsDevicePei: Transfer list initialization Fails, Status = %r\n", Status));
|
||||
|
||||
if (Private->TmrlMapping != NULL) {
|
||||
IoMmuFreeBuffer (
|
||||
@@ -1609,7 +1609,7 @@ UfsControllerInit (
|
||||
return Status;
|
||||
}
|
||||
|
||||
DEBUG ((EFI_D_INFO, "UfsDevicePei Finished\n"));
|
||||
DEBUG ((DEBUG_INFO, "UfsDevicePei Finished\n"));
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -1661,8 +1661,7 @@ UfsControllerStop (
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
DEBUG ((EFI_D_INFO, "UfsDevicePei: Stop the UFS Host Controller\n"));
|
||||
DEBUG ((DEBUG_INFO, "UfsDevicePei: Stop the UFS Host Controller\n"));
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user