DEBUG ((\r
DEBUG_INFO,\r
"%a: could not retrieve DT blob - %r\n",\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
return;\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: Failed to delete 'stdout-path' property: %a\n",\r
- __FUNCTION__,\r
+ __func__,\r
fdt_strerror (Error)\r
));\r
}\r
DEBUG ((\r
DEBUG_WARN,\r
"%a: failed to uninstall SPCR table - %r\n",\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
}\r
DEBUG ((\r
DEBUG_ERROR,\r
"%a: variable '%s' could not be read - bailing!\n",\r
- __FUNCTION__,\r
+ __func__,\r
CONSOLE_PREF_VARIABLE_NAME\r
));\r
return;\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: serial console preferred - doing nothing\n",\r
- __FUNCTION__\r
+ __func__\r
));\r
return;\r
}\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: no GOP instances found - doing nothing (%r)\n",\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
return;\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: no console preference found, defaulting to graphical\n",\r
- __FUNCTION__\r
+ __func__\r
));\r
ConsolePref.Console = CONSOLE_PREF_GRAPHICAL;\r
}\r
DEBUG ((\r
DEBUG_WARN,\r
"%a: invalid value for %s, defaulting to graphical\n",\r
- __FUNCTION__,\r
+ __func__,\r
CONSOLE_PREF_VARIABLE_NAME\r
));\r
ConsolePref.Console = CONSOLE_PREF_GRAPHICAL;\r
DEBUG ((\r
DEBUG_ERROR,\r
"%a: gRT->SetVariable () failed - %r\n",\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
return Status;\r
DEBUG ((\r
DEBUG_ERROR,\r
"%a: '%a' compatible node has invalid 'reg' property (size == 0x%x)\n",\r
- __FUNCTION__,\r
+ __func__,\r
CompatibleString,\r
*RegSize\r
));\r
}\r
\r
if (!IsNodeEnabled (Next)) {\r
- DEBUG ((DEBUG_WARN, "%a: ignoring disabled memory node\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_WARN, "%a: ignoring disabled memory node\n", __func__));\r
continue;\r
}\r
\r
DEBUG ((\r
DEBUG_WARN,\r
"%a: ignoring memory node with no 'reg' property\n",\r
- __FUNCTION__\r
+ __func__\r
));\r
continue;\r
}\r
DEBUG ((\r
DEBUG_WARN,\r
"%a: ignoring memory node with invalid 'reg' property (size == 0x%x)\n",\r
- __FUNCTION__,\r
+ __func__,\r
*RegSize\r
));\r
continue;\r
DEBUG ((\r
DEBUG_INFO,\r
"%a: exposing DTB @ 0x%p to OS\n",\r
- __FUNCTION__,\r
+ __func__,\r
DeviceTreeBase\r
));\r
Status = gBS->InstallConfigurationTable (&gFdtTableGuid, DeviceTreeBase);\r
DEBUG ((\r
DEBUG_ERROR,\r
"%a: No DTB found @ 0x%p\n",\r
- __FUNCTION__,\r
+ __func__,\r
DeviceTreeBase\r
));\r
return EFI_NOT_FOUND;\r
\r
mDeviceTreeBase = DeviceTreeBase;\r
\r
- DEBUG ((DEBUG_INFO, "%a: DTB @ 0x%p\n", __FUNCTION__, mDeviceTreeBase));\r
+ DEBUG ((DEBUG_INFO, "%a: DTB @ 0x%p\n", __func__, mDeviceTreeBase));\r
\r
//\r
// Register a protocol notify for the EDKII Platform Has Device Tree\r
&PlatformHasDeviceTreeEvent\r
);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a: CreateEvent(): %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a: CreateEvent(): %r\n", __func__, Status));\r
return Status;\r
}\r
\r
DEBUG ((\r
DEBUG_ERROR,\r
"%a: RegisterProtocolNotify(): %r\n",\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
goto CloseEvent;\r
//\r
Status = gBS->SignalEvent (PlatformHasDeviceTreeEvent);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a: SignalEvent(): %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a: SignalEvent(): %r\n", __func__, Status));\r
goto CloseEvent;\r
}\r
\r
DEBUG ((\r
DEBUG_ERROR,\r
"%a: InstallProtocolInterface(): %r\n",\r
- __FUNCTION__,\r
+ __func__,\r
Status\r
));\r
goto CloseEvent;\r
\r
Status = MmcHost->SendCommand (MmcHost, MMC_CMD55, CmdArg);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __func__, Status));\r
return Status;\r
}\r
\r
Status = MmcHost->ReceiveResponse (MmcHost, MMC_RESPONSE_TYPE_R1, Response);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __func__, Status));\r
return Status;\r
}\r
\r
CmdArg = CreateSwitchCmdArgument (0, 0, 0);\r
Status = MmcHost->SendCommand (MmcHost, MMC_CMD6, CmdArg);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __func__, Status));\r
return Status;\r
} else {\r
Status = MmcHost->ReadBlockData (MmcHost, 0, SWITCH_CMD_DATA_LENGTH, Buffer);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): ReadBlockData Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): ReadBlockData Error and Status = %r\n", __func__, Status));\r
return Status;\r
}\r
}\r
\r
if (!(Buffer[3] & SD_HIGH_SPEED_SUPPORTED)) {\r
- DEBUG ((DEBUG_INFO, "%a : High Speed not supported by Card\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_INFO, "%a : High Speed not supported by Card\n", __func__));\r
} else {\r
Speed = SD_HIGH_SPEED;\r
\r
CmdArg = CreateSwitchCmdArgument (1, 0, 1);\r
Status = MmcHost->SendCommand (MmcHost, MMC_CMD6, CmdArg);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __func__, Status));\r
return Status;\r
} else {\r
Status = MmcHost->ReadBlockData (MmcHost, 0, SWITCH_CMD_DATA_LENGTH, Buffer);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): ReadBlockData Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): ReadBlockData Error and Status = %r\n", __func__, Status));\r
return Status;\r
}\r
\r
CmdArg = MmcHostInstance->CardInfo.RCA << 16;\r
Status = MmcHost->SendCommand (MmcHost, MMC_CMD55, CmdArg);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD55): Error and Status = %r\n", __func__, Status));\r
return Status;\r
}\r
\r
/* Width: 4 */\r
Status = MmcHost->SendCommand (MmcHost, MMC_CMD6, 2);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (MMC_CMD6): Error and Status = %r\n", __func__, Status));\r
return Status;\r
}\r
}\r
if (MMC_HOST_HAS_SETIOS (MmcHost)) {\r
Status = MmcHost->SetIos (MmcHost, Speed, BUSWIDTH_4, EMMCBACKWARD);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_ERROR, "%a (SetIos): Error and Status = %r\n", __FUNCTION__, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a (SetIos): Error and Status = %r\n", __func__, Status));\r
return Status;\r
}\r
}\r