]> git.proxmox.com Git - mirror_edk2.git/commitdiff
This checkin addresses the compatibility issue of passing arguments of type VA_LIST...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 30 May 2009 23:55:11 +0000 (23:55 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 30 May 2009 23:55:11 +0000 (23:55 +0000)
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@8409 6f19259b-4bc3-4df7-8a09-765794883524

UnixPkg/Library/DxeUnixOemHookStatusCodeLib/UnixOemHookStatusCodeLib.c
UnixPkg/Library/PeiUnixOemHookStatusCodeLib/UnixOemHookStatusCodeLib.c
UnixPkg/Sec/SecMain.c

index f09bf93c63e91f9580ef7988f700903e58777291..9653f01ffa0444e4e8f1791e1dc00afff4e176f4 100644 (file)
@@ -61,7 +61,7 @@ OemHookStatusCodeInitialize (
   //\r
   // Cache standard output handle.\r
   //\r
-  mStdOut = 1;
+  mStdOut = 1;\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -111,7 +111,7 @@ OemHookStatusCodeReport (
   UINT32          ErrorLevel;\r
   UINT32          LineNumber;\r
   UINTN           CharCount;\r
-  VA_LIST         Marker;\r
+  BASE_LIST       Marker;\r
   EFI_DEBUG_INFO  *DebugInfo;\r
 \r
   Buffer[0] = '\0';\r
@@ -137,7 +137,7 @@ OemHookStatusCodeReport (
               mStdOut,\r
               Buffer,\r
               CharCount\r
-             );
+             );\r
 \r
     return EFI_SUCCESS;\r
 \r
@@ -146,7 +146,7 @@ OemHookStatusCodeReport (
     //\r
     // Print DEBUG() information into output buffer.\r
     //\r
-    CharCount = AsciiVSPrint (\r
+    CharCount = AsciiBSPrint (\r
                   Buffer, \r
                   EFI_STATUS_CODE_DATA_MAX_SIZE, \r
                   Format, \r
@@ -159,10 +159,10 @@ OemHookStatusCodeReport (
     // Print specific data into output buffer.\r
     //\r
     DebugInfo = (EFI_DEBUG_INFO *) (Data + 1);\r
-    Marker    = (VA_LIST) (DebugInfo + 1);\r
+    Marker    = (BASE_LIST) (DebugInfo + 1);\r
     Format    = (CHAR8 *) (((UINT64 *) Marker) + 12);\r
 \r
-    CharCount = AsciiVSPrint (Buffer, EFI_STATUS_CODE_DATA_MAX_SIZE, Format, Marker);\r
+    CharCount = AsciiBSPrint (Buffer, EFI_STATUS_CODE_DATA_MAX_SIZE, Format, Marker);\r
   } else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) {\r
     //\r
     // Print ERROR information into output buffer.\r
index ab06814b11d2356fe81ce7148eeb76c5882c8bd0..ea028b5f2fb109ac7bf13307b23074421b157aba 100644 (file)
@@ -119,7 +119,7 @@ OemHookStatusCodeReport (
   UINT32          ErrorLevel;
   UINT32          LineNumber;
   UINTN           CharCount;
-  VA_LIST         Marker;
+  BASE_LIST       Marker;
   EFI_DEBUG_INFO  *DebugInfo;
 
   Buffer[0] = '\0';
@@ -154,7 +154,7 @@ OemHookStatusCodeReport (
     //
     // Print DEBUG() information into output buffer.
     //
-    CharCount = AsciiVSPrint (
+    CharCount = AsciiBSPrint (
                   Buffer, 
                   EFI_STATUS_CODE_DATA_MAX_SIZE, 
                   Format, 
@@ -167,10 +167,10 @@ OemHookStatusCodeReport (
     // Print specific data into output buffer.
     //
     DebugInfo = (EFI_DEBUG_INFO *) (Data + 1);
-    Marker    = (VA_LIST) (DebugInfo + 1);
+    Marker    = (BASE_LIST) (DebugInfo + 1);
     Format    = (CHAR8 *) (((UINT64 *) Marker) + 12);
 
-    CharCount = AsciiVSPrint (Buffer, EFI_STATUS_CODE_DATA_MAX_SIZE, Format, Marker);
+    CharCount = AsciiBSPrint (Buffer, EFI_STATUS_CODE_DATA_MAX_SIZE, Format, Marker);
   } else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) {
     //
     // Print ERROR information into output buffer.
index ffeed21e7525366e62b28bfd77bc8393173b265e..ae5b1fb306cdef32fdddad67611f485be57099d2 100644 (file)
@@ -448,7 +448,7 @@ Returns:
 // TODO:    Data - add argument and description to function comment
 {
   CHAR8           *Format;
-  VA_LIST         Marker;
+  BASE_LIST       Marker;
   CHAR8           PrintBuffer[BYTES_PER_RECORD * 2];
   CHAR8           *Filename;
   CHAR8           *Description;
@@ -467,7 +467,7 @@ Returns:
     //
     // Process DEBUG () macro 
     //
-    AsciiVSPrint (PrintBuffer, BYTES_PER_RECORD, Format, Marker);
+    AsciiBSPrint (PrintBuffer, BYTES_PER_RECORD, Format, Marker);
     printf (PrintBuffer);
   }