From 77dcd03ecfcd33ae192ed9aef0d595d3ef6a7f24 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Tue, 12 Oct 2021 16:40:39 -0700 Subject: [PATCH] MdeModulePkg: Reproduce builds across source format changes REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3688 Use DEBUG_LINE_NUMBER instead of __LINE__. Cc: Jian J Wang Cc: Liming Gao Cc: Michael Kubacki Signed-off-by: Michael D Kinney Reviewed-by: Liming Gao Tested-by: Michael Kubacki --- MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | 2 +- MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c index 4ab9415c96..163e931dd9 100644 --- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c +++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c @@ -874,7 +874,7 @@ NotifyPhase ( Translation = GetTranslationByResourceType (RootBridge, Index); if ((Translation & Alignment) != 0) { DEBUG ((DEBUG_ERROR, "[%a:%d] Translation %lx is not aligned to %lx!\n", - __FUNCTION__, __LINE__, Translation, Alignment + __FUNCTION__, DEBUG_LINE_NUMBER, Translation, Alignment )); ASSERT ((Translation & Alignment) == 0); // diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c b/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c index 52e35e4518..fa1fd87d15 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c @@ -574,7 +574,7 @@ BmRepairAllControllers ( BmRepairAllControllers (ReconnectRepairCount + 1); } else { DEBUG ((DEBUG_ERROR, "[%a:%d] Repair failed after %d retries.\n", - __FUNCTION__, __LINE__, ReconnectRepairCount)); + __FUNCTION__, DEBUG_LINE_NUMBER, ReconnectRepairCount)); } }