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

Function OcPrintScreen

Library/OcDebugLogLib/OcDebugLogLib.c:265–287  ·  view source on GitHub ↗

Prints via gST->ConOut without any pool allocations. Otherwise equivalent to Print. Note: EFIAPI must be present for VA_ARGS forwarding (causes bugs with gcc). @param[in] Format Formatted string. **/

Source from the content-addressed store, hash-verified

263 @param[in] Format Formatted string.
264**/
265VOID
266EFIAPI
267OcPrintScreen (
268 IN CONST CHAR16 *Format,
269 ...
270 )
271{
272 CHAR16 Buffer[1024];
273 VA_LIST Marker;
274
275 VA_START (Marker, Format);
276 UnicodeVSPrint (Buffer, sizeof (Buffer), Format, Marker);
277 VA_END (Marker);
278
279 //
280 // It is safe to call gST->ConOut->OutputString, because in crtitical areas
281 // AptioMemoryFix is responsible for overriding gBS->AllocatePool with its own
282 // implementation that uses a custom allocator.
283 //
284 if (gST->ConOut) {
285 gST->ConOut->OutputString (gST->ConOut, Buffer);
286 }
287}

Callers

nothing calls this directly

Calls 1

UnicodeVSPrintFunction · 0.50

Tested by

no test coverage detected