mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
884a173010
commit
aa0a514967
|
@ -133,7 +133,7 @@ DebugAssert (
|
|||
//
|
||||
// Generate the ASSERT() message in Ascii format
|
||||
//
|
||||
AsciiSPrint (Buffer, sizeof (Buffer), "ASSERT %a(%d): %a\n", FileName, LineNumber, Description);
|
||||
AsciiSPrint (Buffer, sizeof (Buffer), "ASSERT [%a] %a(%d): %a\n", gEfiCallerBaseName, FileName, LineNumber, Description);
|
||||
|
||||
//
|
||||
// Send the print string to the Console Output device
|
||||
|
|
|
@ -121,7 +121,8 @@ DebugAssert (
|
|||
UnicodeSPrintAsciiFormat (
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"ASSERT %a(%d): %a\n",
|
||||
"ASSERT [%a] %a(%d): %a\n",
|
||||
gEfiCallerBaseName,
|
||||
FileName,
|
||||
LineNumber,
|
||||
Description
|
||||
|
|
|
@ -175,7 +175,8 @@ DebugAssert (
|
|||
AsciiSPrint (
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"ASSERT %a(%d): %a\n",
|
||||
"ASSERT [%a] %a(%d): %a\n",
|
||||
gEfiCallerBaseName,
|
||||
FileName,
|
||||
LineNumber,
|
||||
Description
|
||||
|
|
|
@ -122,7 +122,8 @@ DebugAssert (
|
|||
UnicodeSPrintAsciiFormat (
|
||||
Buffer,
|
||||
sizeof (Buffer),
|
||||
"ASSERT %a(%d): %a\n",
|
||||
"ASSERT [%a] %a(%d): %a\n",
|
||||
gEfiCallerBaseName,
|
||||
FileName,
|
||||
LineNumber,
|
||||
Description
|
||||
|
|
Loading…
Reference in New Issue