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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user