summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c
diff options
context:
space:
mode:
authorBaraneedharan Anbazhagan <anbazhagan@hp.com>2015-12-07 03:06:02 +0000
committerlgao4 <lgao4@Edk2>2015-12-07 03:06:02 +0000
commitaa0a514967f4fb1dce1134b64b6f69aa87641de9 (patch)
treef115487a24ecec25c00f796df46939f563b4e0ce /MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c
parent884a173010382cb2cad11f5c9ada2e8c1068b48a (diff)
downloadedk2-aa0a514967f4fb1dce1134b64b6f69aa87641de9.tar.gz
edk2-aa0a514967f4fb1dce1134b64b6f69aa87641de9.tar.bz2
edk2-aa0a514967f4fb1dce1134b64b6f69aa87641de9.zip
MdePkg: DebugAssert enhancement
If the assert happens in a library, then it's hard to determine which module using that library is generating that assert. Use gEfiCallerBaseName in DebugAssert to display the module name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Baraneedharan Anbazhagan <anbazhagan@hp.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19127 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c')
-rw-r--r--MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c
index 10d3e347cc..44bf6ba128 100644
--- a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c
+++ b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLib.c
@@ -175,7 +175,8 @@ DebugAssert (
AsciiSPrint (
Buffer,
sizeof (Buffer),
- "ASSERT %a(%d): %a\n",
+ "ASSERT [%a] %a(%d): %a\n",
+ gEfiCallerBaseName,
FileName,
LineNumber,
Description