From 53d74081d074a4f114a9720b9986df68d76275a7 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sat, 30 May 2009 23:54:42 +0000 Subject: [PATCH] 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 --- .../DxeNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c | 4 ++-- .../PeiNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Nt32Pkg/Library/DxeNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c b/Nt32Pkg/Library/DxeNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c index 24f154ca15..f3d9efcaad 100644 --- a/Nt32Pkg/Library/DxeNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c +++ b/Nt32Pkg/Library/DxeNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c @@ -122,7 +122,7 @@ OemHookStatusCodeReport ( UINT32 ErrorLevel; UINT32 LineNumber; UINTN CharCount; - VA_LIST Marker; + BASE_LIST Marker; Buffer[0] = '\0'; @@ -158,7 +158,7 @@ OemHookStatusCodeReport ( // // Print DEBUG() information into output buffer. // - CharCount = AsciiVSPrint ( + CharCount = AsciiBSPrint ( Buffer, EFI_STATUS_CODE_DATA_MAX_SIZE, Format, diff --git a/Nt32Pkg/Library/PeiNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c b/Nt32Pkg/Library/PeiNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c index a7d68410ba..ff73c1c84a 100644 --- a/Nt32Pkg/Library/PeiNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c +++ b/Nt32Pkg/Library/PeiNt32OemHookStatusCodeLib/Nt32OemHookStatusCodeLib.c @@ -131,7 +131,7 @@ OemHookStatusCodeReport ( UINT32 ErrorLevel; UINT32 LineNumber; UINTN CharCount; - VA_LIST Marker; + BASE_LIST Marker; Buffer[0] = '\0'; @@ -167,7 +167,7 @@ OemHookStatusCodeReport ( // // Print DEBUG() information into output buffer. // - CharCount = AsciiVSPrint ( + CharCount = AsciiBSPrint ( Buffer, EFI_STATUS_CODE_DATA_MAX_SIZE, Format, -- 2.39.2