mirror of https://github.com/acidanthera/audk.git
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 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@8408 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b5a8e95c5e
commit
53d74081d0
|
@ -122,7 +122,7 @@ OemHookStatusCodeReport (
|
||||||
UINT32 ErrorLevel;
|
UINT32 ErrorLevel;
|
||||||
UINT32 LineNumber;
|
UINT32 LineNumber;
|
||||||
UINTN CharCount;
|
UINTN CharCount;
|
||||||
VA_LIST Marker;
|
BASE_LIST Marker;
|
||||||
|
|
||||||
Buffer[0] = '\0';
|
Buffer[0] = '\0';
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ OemHookStatusCodeReport (
|
||||||
//
|
//
|
||||||
// Print DEBUG() information into output buffer.
|
// Print DEBUG() information into output buffer.
|
||||||
//
|
//
|
||||||
CharCount = AsciiVSPrint (
|
CharCount = AsciiBSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
Format,
|
Format,
|
||||||
|
|
|
@ -131,7 +131,7 @@ OemHookStatusCodeReport (
|
||||||
UINT32 ErrorLevel;
|
UINT32 ErrorLevel;
|
||||||
UINT32 LineNumber;
|
UINT32 LineNumber;
|
||||||
UINTN CharCount;
|
UINTN CharCount;
|
||||||
VA_LIST Marker;
|
BASE_LIST Marker;
|
||||||
|
|
||||||
Buffer[0] = '\0';
|
Buffer[0] = '\0';
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ OemHookStatusCodeReport (
|
||||||
//
|
//
|
||||||
// Print DEBUG() information into output buffer.
|
// Print DEBUG() information into output buffer.
|
||||||
//
|
//
|
||||||
CharCount = AsciiVSPrint (
|
CharCount = AsciiBSPrint (
|
||||||
Buffer,
|
Buffer,
|
||||||
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
EFI_STATUS_CODE_DATA_MAX_SIZE,
|
||||||
Format,
|
Format,
|
||||||
|
|
Loading…
Reference in New Issue