MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / vprintf

Function vprintf

rEFIt_UEFI/Platform/Posix/stdio.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static XStringW stdio_static_wbuf;
27
28int vprintf(const char* format, VA_LIST va)
29{
30 // AsciiPrint seems no to work with utf8 chars. We have to use Print instead
31 stdio_static_wbuf.vSWPrintf(format, va);
32 stdio_static_wbuf.replaceAll("\n"_XS8, "\r\n"_XS8);
33 int ret = (int)Print(L"%s", stdio_static_wbuf.wc_str());
34 return ret;
35}
36
37int printf(const char* format, ...)
38{

Callers 4

panic_Function · 0.85
printfFunction · 0.85
ReportFunction · 0.85
DebugLogFunction · 0.85

Calls 3

PrintFunction · 0.85
vSWPrintfMethod · 0.80
wc_strMethod · 0.45

Tested by

no test coverage detected