| 304 | } |
| 305 | |
| 306 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CONST CHAR16 *where) |
| 307 | { |
| 308 | // CHAR16 ErrorName[64]; |
| 309 | |
| 310 | if (!EFI_ERROR(Status)) |
| 311 | return FALSE; |
| 312 | |
| 313 | // StatusToString(ErrorName, Status); |
| 314 | gST->ConOut->SetAttribute (gST->ConOut, ATTR_ERROR); |
| 315 | printf("Error: %s %ls\n", efiStrError(Status), where); |
| 316 | gST->ConOut->SetAttribute (gST->ConOut, ATTR_BASIC); |
| 317 | haveError = TRUE; |
| 318 | |
| 319 | return TRUE; |
| 320 | } |
| 321 | |
| 322 | // |
| 323 | // Graphics functions |
no test coverage detected