mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
SourceLevelDebugPkg: Update code to be more C11 compliant by using __func__
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among others support, while __func__ was standardized in C99. Since it's more standard, replace __FUNCTION__ with __func__ throughout SourceLevelDebugPkg. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
parent
84f553cb63
commit
457b4e42f7
@ -186,7 +186,7 @@ Usb3DxeSmmReadyToLockNotify (
|
|||||||
{
|
{
|
||||||
USB3_DEBUG_PORT_HANDLE *Instance;
|
USB3_DEBUG_PORT_HANDLE *Instance;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a()\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a()\n", __func__));
|
||||||
|
|
||||||
Instance = GetUsb3DebugPortInstance ();
|
Instance = GetUsb3DebugPortInstance ();
|
||||||
ASSERT (Instance != NULL);
|
ASSERT (Instance != NULL);
|
||||||
@ -290,7 +290,7 @@ Usb3PciIoNotify (
|
|||||||
//
|
//
|
||||||
// Found the PciIo for USB3 debug port.
|
// Found the PciIo for USB3 debug port.
|
||||||
//
|
//
|
||||||
DEBUG ((DEBUG_INFO, "%a()\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a()\n", __func__));
|
||||||
if (Usb3GetIoMmu () != NULL) {
|
if (Usb3GetIoMmu () != NULL) {
|
||||||
Instance = GetUsb3DebugPortInstance ();
|
Instance = GetUsb3DebugPortInstance ();
|
||||||
ASSERT (Instance != NULL);
|
ASSERT (Instance != NULL);
|
||||||
|
@ -35,7 +35,7 @@ Usb3IoMmuPpiNotify (
|
|||||||
{
|
{
|
||||||
USB3_DEBUG_PORT_HANDLE *Instance;
|
USB3_DEBUG_PORT_HANDLE *Instance;
|
||||||
|
|
||||||
DEBUG ((DEBUG_INFO, "%a()\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a()\n", __func__));
|
||||||
|
|
||||||
Instance = GetUsb3DebugPortInstance ();
|
Instance = GetUsb3DebugPortInstance ();
|
||||||
ASSERT (Instance != NULL);
|
ASSERT (Instance != NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user