mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
MMC : Added missing __FUNCTION__ macro.
We want to print name of the function resulted in error, but __FUNCTION__ macro was missing. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
parent
c50596a701
commit
3d43616632
@ -388,12 +388,12 @@ InitializeSdMmcDevice (
|
|||||||
|
|
||||||
Status = MmcHost->SendCommand (MmcHost, MMC_CMD55, CmdArg);
|
Status = MmcHost->SendCommand (MmcHost, MMC_CMD55, CmdArg);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a(MMC_CMD55): Error and Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __FUNCTION__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response);
|
Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a(MMC_CMD55): Error and Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __FUNCTION__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
if ((Response[0] & MMC_STATUS_APP_CMD) == 0) {
|
if ((Response[0] & MMC_STATUS_APP_CMD) == 0) {
|
||||||
@ -445,12 +445,12 @@ InitializeSdMmcDevice (
|
|||||||
CmdArg |= 1 << (0 * 4);
|
CmdArg |= 1 << (0 * 4);
|
||||||
Status = MmcHost->SendCommand (MmcHost, MMC_CMD6, CmdArg);
|
Status = MmcHost->SendCommand (MmcHost, MMC_CMD6, CmdArg);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a(MMC_CMD6): Error and Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __FUNCTION__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
} else {
|
} else {
|
||||||
Status = MmcHost->ReadBlockData (MmcHost, 0, 64, Buffer);
|
Status = MmcHost->ReadBlockData (MmcHost, 0, 64, Buffer);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a(MMC_CMD6): ReadBlockData Error and Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): ReadBlockData Error and Status = %r\n", __FUNCTION__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -459,20 +459,20 @@ InitializeSdMmcDevice (
|
|||||||
CmdArg = MmcHostInstance->CardInfo.RCA << 16;
|
CmdArg = MmcHostInstance->CardInfo.RCA << 16;
|
||||||
Status = MmcHost->SendCommand (MmcHost, MMC_CMD55, CmdArg);
|
Status = MmcHost->SendCommand (MmcHost, MMC_CMD55, CmdArg);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a(MMC_CMD55): Error and Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __FUNCTION__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
/* Width: 4 */
|
/* Width: 4 */
|
||||||
Status = MmcHost->SendCommand (MmcHost, MMC_CMD6, 2);
|
Status = MmcHost->SendCommand (MmcHost, MMC_CMD6, 2);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a(MMC_CMD6): Error and Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __FUNCTION__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (MMC_HOST_HAS_SETIOS(MmcHost)) {
|
if (MMC_HOST_HAS_SETIOS(MmcHost)) {
|
||||||
Status = MmcHost->SetIos (MmcHost, 26 * 1000 * 1000, 4, EMMCBACKWARD);
|
Status = MmcHost->SetIos (MmcHost, 26 * 1000 * 1000, 4, EMMCBACKWARD);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((EFI_D_ERROR, "%a(SetIos): Error and Status = %r\n", Status));
|
DEBUG ((DEBUG_ERROR, "%a (SetIos): Error and Status = %r\n", __FUNCTION__, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user