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

Function CheckFatalError

rEFIt_UEFI/refit/screen.cpp:288–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288BOOLEAN CheckFatalError(IN EFI_STATUS Status, IN CONST CHAR16 *where)
289{
290// CHAR16 ErrorName[64];
291
292 if (!EFI_ERROR(Status))
293 return FALSE;
294
295// StatusToString(ErrorName, Status);
296 gST->ConOut->SetAttribute (gST->ConOut, ATTR_ERROR);
297 printf("Fatal Error: %s %ls\n", efiStrError(Status), where);
298 gST->ConOut->SetAttribute (gST->ConOut, ATTR_BASIC);
299 haveError = TRUE;
300
301 //gBS->Exit(ImageHandle, ExitStatus, ExitDataSize, ExitData);
302
303 return TRUE;
304}
305
306BOOLEAN CheckError(IN EFI_STATUS Status, IN CONST CHAR16 *where)
307{

Callers 3

InitRefitLibFunction · 0.85
ReinitSelfLibFunction · 0.85
FinishInitRefitLibFunction · 0.85

Calls 2

printfFunction · 0.85
efiStrErrorFunction · 0.50

Tested by

no test coverage detected