MdeModulePkg: DebugAssert enhancement
authorBaraneedharan Anbazhagan <anbazhagan@hp.com>
Mon, 7 Dec 2015 03:06:30 +0000 (03:06 +0000)
committerlgao4 <lgao4@Edk2>
Mon, 7 Dec 2015 03:06:30 +0000 (03:06 +0000)
commit39eccb9c66be7329eaf564d18f8f3cfb9add82e9
tree356cf6033093eaadfca9b076c1ea9c362fca2d1b
parentaa0a514967f4fb1dce1134b64b6f69aa87641de9
MdeModulePkg: 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.

V2: Updated code to use copy mem and ModuleNameSize calculation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19128 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c