History log of /device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1ffe7cc56281fda7c714d32d569b533925d37ede 07-Dec-2015 Baraneedharan Anbazhagan <anbazhagan@hp.com> IntelFrameworkModulePkg: 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.

In V2: Updated patch to use CopyMem instead of AsciiSPrint.

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@19129 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
d5cbc27b005522a4c0f40c0b14c32def8e1bae9c 30-Jun-2015 Hao Wu <hao.a.wu@intel.com> IntelFrameworkModulePkg PeiDxeDebugLib: Use safe string functions

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17734 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
94e3eee6e827aa971228044a3b826efa4ebaf1f7 08-Jun-2015 Qiu Shumin <shumin.qiu@intel.com> IntelFrameworkModulePkg: Add %u and %lu support for DebugLib.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17569 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
4569c9e655638592b6a8cd75109f8c33cf6939c4 03-Apr-2015 Liming Gao <liming.gao@intel.com> IntelFrameworkModulePkg: Cleanup PeiDxeDebugLibReportStatusCode

Cleanup PeiDxeDebugLibReportStatusCode library instance not to depend on
IntelFrameworkPkg and IntelFrameworkModulePkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17109 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
30aba8d3345455b27f3a16ba4f82bff510c747e4 06-Feb-2015 Liming Gao <liming.gao@intel.com> IntelFrameworkModulePkg: Update PeiDxeDebugLibReportStatusCode library

Implement new API DebugPrintLevelEnabled() to base on PCD PcdFixedDebugPrintErrorLevel.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16786 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
856d643816fc04c5645bba4eafce4de675649c4f 12-Jun-2012 lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> Update PeiDxeDebugDebugLibReportStatusCode to use CopyMem() in place of AsciiStrnCpy() to copy ASCII string to save size.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13441 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
ea1b39e617f93f2dd674eb111f101759ea2274b7 21-May-2012 lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> Update PeiDxeDebugLibReportStatusCode library instance to print partial ASSERT message if ASSERT message is too big.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13339 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
3bbe68a3627e7c75474955352f27b923c5831ad7 01-Feb-2012 rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> Add Missing invocations to VA_END() for VA_START().

Signed-off-by: rsun3
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12979 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
c77b88d627f1624fb4bdf3c92b8122556b753c80 10-Mar-2011 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Update DebugLib to provide support for "err" command in the EFI Shell to adjust the filter mask for DEBUG() messages. The "err" command provide the ability to adjust this filter mask at a global level through an EFI Variable and at the module level through a the Debug Mask Protocol. In order to support the degree of flexibility, the DebugLib needs to use library to abstract the get/set operations to the filter mask.

1) Update PeiDxeDebugLibReportStatusCode to use DebugPrintErrorLevelLib instead of the PcdDebugPrintErrorLevel PCD.
2) Add default mappings for the DebugPrintErrorLevelLib to the DSC file for this package.






git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11368 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
180a5a35cb49699bd249dee19e41cee34c856a58 23-Apr-2010 hhtian <hhtian@6f19259b-4bc3-4df7-8a09-765794883524> Update the copyright notice format

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10414 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
a1158366091c74f831da8232d8bbb39dc2befda9 24-Dec-2009 eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> update file/function comments to list the string length limitation.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9596 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
3d747a890f9e792dc78ca07c7dc4dd571af2e323 01-Sep-2009 qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> Refactor the code logic to reduce code size for debug tip.
The original switch case statements does not generate space efficient size when optimization is disabled.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9221 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
0fac539f37c79acd4211e6afeb9a7904d81bbf58 13-Aug-2009 eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> recalculate the total size of format string printed by DebugPrint().
To ensure constructed BaseListMarker can work on IPF, code preserves 4bytes to guarantee it's 64bits alignment. So the calculation algorithm on total size also should be updated.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9062 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
79bc7a89f7da2c5c17332a55e514dd69e849ce87 12-Jul-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Remove extra #includes where possible to make build more efficient

If module really is a Framework module and not a PI module, then use FrameworkDxe.h instead of PeDxe.h


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8900 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
7d2beb7e11441c38ad0b559fd2042e9de510515b 18-Jun-2009 rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> Remove an inline assembly statement added for debug

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8601 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
9ba6cd30facae4a9e6e8fe79b8962cba21aecae2 18-Jun-2009 xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> Code scrub for PeiDxeDebugLibReportStatusCode.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8594 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
785e0c0743db43fb0d238b9840c3fbef85ac3612 07-Jun-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Retire <FrameworkModuleBase.h>, <FrameworkModuleDxe.h>, and <FrameworkModulePei.h>

They only provided a single #define that is associated with DEBUG() messages sent through ReportStatusCode. That one #define has now been added to <Guid/StatusCodeDataTypeDebug.h>


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8487 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
e79a2975adf4a1a6ae8a26db0bf2143b462b9fd9 04-Jun-2009 xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> Remove ASSERT (TotalSize <= sizeof (Buffer));

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8461 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
6916d99cb74bb4c19cd1fef68c0c09386e76fbf0 03-Jun-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Fix IPF alignment fault caused by addition of BASE_LIST type that was added to resolve the X64 GCC VA_LIST issue.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8452 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
1ca88083d42d1284ac7547cbed6699777c490241 02-Jun-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Increase source portability by replace the use of EFI_STATUS_CODE_DATA_MAX_SIZE with sizeof(Buffer)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8435 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
3a6064fa3b4b371476cce682d298923b06bd2745 01-Jun-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> 1) Move gEfiStatusCodeDataTypeDebugGuid from the IntelFrameworkPkg to the IntelFrameworkModulePkg. This GUID is not defined in the Framework Specifications, so it is part of the implementation. This GUID is used to pass DEBUG() information to the Status Code Protocol and PPI. This GUID is now defined in IntelFrameworkModulePkg/Include/Guid/StatusCodeDataTypeDebug.h. The GUID definition was also moved from the DEC file in the IntelFrameworkPkg to the IntelFrameworkModulePkg.

2) Move data structure use to pass DEBUG() info to Status Code Protocol and Status Code PPI from IntelFrameworkModulePkg.Include/DebugInfo.h into the new GUID file IntelFrameworkModulePkg/Include/Guid/StatusCodeDataTypeDebug.h

3) Delete IntelFrameworkModulePkg/Include/DebugInfo.h because all the content is now in IntelFrameworkModulePkg/Include/Guid/StatusCodeDataTypeDebug.h

Module Impacts
==============
1) Modules that currently use #include <DebugInfo.h> must be updated to #include <Guid/StatusCodeDataTypeDebug.h>.
2) Modules that currently use #include <Guid/StatusCodeDataTypeId.h> and don't #include <DebugInfo.h> will have to add #include <Guid/StatusCodeDataTypeDebug.h>.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8431 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
1872ccab741e89f8ab621e47799dbe79d4ab0e0b 01-Jun-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Remove the GUID declared as gEfiStatusCodeDataTypeAssertGuid and EFI_STATUS_CODE_DATA_TYPE_ASSERT_GUID because it is not present in the Intel Framework Specifications.

Any usage of this GUID should be replaced with gEfiStatusCodeSpecificDataGuid or EFI_STATUS_CODE_SPECIFIC_DATA_GUID. The Intel Framework Specification Status Codes 0.92 defines the method for producing a status code for an ASSERT() condition by using an error code of EFI_SW_EC_ILLEGAL_SOFTWARE_STATE. Any consumer of produced status codes should evaluate the error code to determine if it is an ASSERT() type, and then know how to interpret the extended data as EFI_DEBUG_ASSERT_DATA.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8427 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
3d7dfb3886b172f1656987dbdce49743e18e4cbf 31-May-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> Change (UINT8 *) to (CHAR *) to make types the same for comparison operations


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8415 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
ca9938b842347769618f84a2d53af63d6edf48e6 31-May-2009 mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> This checkin addresses the compatibility issue of passing arguments of type VA_LIST between components. The type VA_LIST is mapped onto the compiler specific implementation of varargs. As a result, modules build with different compilers may not use the same VA_LIST structure. The solution to this issue is to define a new type called BASE_LIST that is a compiler independent method of passing varargs between modules.

1) Update all implementations of ReportStatusCodeExtractDebugInfo() to use an argument of type BASE_LIST instead of VA_LIST.
2) Update the implementation of DebugPrint() in PeiDxeDebugLibReportStatusCode to convert a VA_LIST to a BASE_LIST before passing the data to report status code.
3) Update status code listeners to use the BASE_LIST based APIs in the PrintLib instead of the VA_LIST based APIs, since ReportStatusCodeExtractDebugInfo() was updated to return a parameter of type BASE_LIST.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8406 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
8191cd5efd9209a8dd8c9e60f042ed9e67f9bb32 18-Dec-2008 lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> Enhance PciCfg2 driver to handle unaligned Pci access according to PI spec.

Remove the undefined logic to process gEfiStatusCodeSpecificDataGuid status code data.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7078 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
967c09fa7c13a6b88fcb690d167269e797058c51 19-Nov-2008 qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> Update doxygen comment.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6620 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
584125bcba104b165a9886fb90d73fed03c6ec55 12-Aug-2008 eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> code review's result.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5633 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
551ed06f6004a8b0ae0581a75da8dfd8d0721807 16-Aug-2007 klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> Move EFI_STATUS_CODE_DATA_MAX_SIZE from IntelFrameworkPkg to IntelFrameworkModulePkg

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3648 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
2287f237eea173b36c703bca8840783c27d5f45f 10-Aug-2007 klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> 1) Move EFI_DEBUG_INFO structure to IntelFrameworkModule/Include/DebugInfo.h header file.

2) Move BaseReportStatusCodeLib, PeiDxeDebugLibReportStatusCode, DxeReportStatusCodeLibFramework,PeiReportStatusCodeLib to IntelFrameworkModulePkg

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3601 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c