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. **/
| 263 | @param[in] Format Formatted string. |
| 264 | **/ |
| 265 | VOID |
| 266 | EFIAPI |
| 267 | OcPrintScreen ( |
| 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 | } |
nothing calls this directly
no test coverage detected