RDFU  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Logs.c
Go to the documentation of this file.
1 
13 #include "EfiScannerHeaders.h"
14 
15 
16 //
17 // globals
18 //
19 
25 
26 
27 
40 VOID LogFileAscii(CHAR8 *FormatString, ...)
41 {
42  VA_LIST VList;
43  CHAR8 LogBuffer[1024];
44 
45  VA_START(VList, FormatString);
46  AsciiVSPrint(LogBuffer, sizeof(LogBuffer)-1, FormatString, VList);
47  VA_END(VList);
48 
49 
51 
52  WriteLogFile(LogBuffer);
54  ComPutString(LogBuffer);
55 
57 
58 }
59 
60 
73 VOID LogFullAscii(CHAR8 *FormatString, ...)
74 {
75  VA_LIST VList;
76  CHAR8 LogBuffer[1024];
77 
78  VA_START(VList, FormatString);
79  AsciiVSPrint(LogBuffer, sizeof(LogBuffer)-1, FormatString, VList);
80  VA_END(VList);
81 
83 
84  PRINT_FUNC_ASCII(LogBuffer);
85  WriteLogFile(LogBuffer);
86 
88  ComPutString(LogBuffer);
89 
91 
92 }
93 
94 
108 VOID LogFullUnicode(CHAR16 *FormatString, ...)
109 {
110  VA_LIST VList;
111  CHAR16 LogBuffer[1024];
112 
113  VA_START(VList, FormatString);
114  UnicodeVSPrint(LogBuffer, sizeof(LogBuffer)-1, FormatString, VList);
115  VA_END(VList);
116 
118 
119  PRINT_FUNC(LogBuffer);
120  WriteLogFile16(LogBuffer);
121 
123 }