MdeModulePkg/UfsPassThruDxe: Replace 'EFI_D_XXX' with 'DEBUG_XXX'
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -784,7 +784,7 @@ UfsPassThruDriverBindingStart (
|
||||
Private = NULL;
|
||||
UfsHcBase = 0;
|
||||
|
||||
DEBUG ((EFI_D_INFO, "==UfsPassThru Start== Controller = %x\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "==UfsPassThru Start== Controller = %x\n", Controller));
|
||||
|
||||
Status = gBS->OpenProtocol (
|
||||
Controller,
|
||||
@@ -796,7 +796,7 @@ UfsPassThruDriverBindingStart (
|
||||
);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Open Ufs Host Controller Protocol Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Open Ufs Host Controller Protocol Error, Status = %r\n", Status));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -805,7 +805,7 @@ UfsPassThruDriverBindingStart (
|
||||
//
|
||||
Status = UfsHc->GetUfsHcMmioBar (UfsHc, &UfsHcBase);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Get Ufs Host Controller Mmio Bar Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Get Ufs Host Controller Mmio Bar Error, Status = %r\n", Status));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -814,7 +814,7 @@ UfsPassThruDriverBindingStart (
|
||||
//
|
||||
Private = AllocateCopyPool (sizeof (UFS_PASS_THRU_PRIVATE_DATA), &gUfsPassThruTemplate);
|
||||
if (Private == NULL) {
|
||||
DEBUG ((EFI_D_ERROR, "Unable to allocate Ufs Pass Thru private data\n"));
|
||||
DEBUG ((DEBUG_ERROR, "Unable to allocate Ufs Pass Thru private data\n"));
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto Error;
|
||||
}
|
||||
@@ -829,7 +829,7 @@ UfsPassThruDriverBindingStart (
|
||||
//
|
||||
Status = UfsControllerInit (Private);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Ufs Host Controller Initialization Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Ufs Host Controller Initialization Error, Status = %r\n", Status));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -840,7 +840,7 @@ UfsPassThruDriverBindingStart (
|
||||
//
|
||||
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));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -849,7 +849,7 @@ UfsPassThruDriverBindingStart (
|
||||
//
|
||||
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));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -858,7 +858,7 @@ UfsPassThruDriverBindingStart (
|
||||
//
|
||||
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));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -869,7 +869,7 @@ UfsPassThruDriverBindingStart (
|
||||
for (Index = 0; Index < 8; Index++) {
|
||||
if (Config.UnitDescConfParams[Index].LunEn != 0) {
|
||||
Private->Luns.BitMask |= (BIT0 << Index);
|
||||
DEBUG ((EFI_D_INFO, "Ufs Lun %d is enabled\n", Index));
|
||||
DEBUG ((DEBUG_INFO, "Ufs Lun %d is enabled\n", Index));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -884,7 +884,7 @@ UfsPassThruDriverBindingStart (
|
||||
&Private->TimerEvent
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Ufs Create Async Tasks Event Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Ufs Create Async Tasks Event Error, Status = %r\n", Status));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -894,7 +894,7 @@ UfsPassThruDriverBindingStart (
|
||||
UFS_HC_ASYNC_TIMER
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_ERROR, "Ufs Set Periodic Timer Error, Status = %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "Ufs Set Periodic Timer Error, Status = %r\n", Status));
|
||||
goto Error;
|
||||
}
|
||||
|
||||
@@ -986,7 +986,7 @@ UfsPassThruDriverBindingStop (
|
||||
LIST_ENTRY *Entry;
|
||||
LIST_ENTRY *NextEntry;
|
||||
|
||||
DEBUG ((EFI_D_INFO, "==UfsPassThru Stop== Controller Controller = %x\n", Controller));
|
||||
DEBUG ((DEBUG_INFO, "==UfsPassThru Stop== Controller Controller = %x\n", Controller));
|
||||
|
||||
Status = gBS->OpenProtocol (
|
||||
Controller,
|
||||
|
Reference in New Issue
Block a user