Alert message for disable failure
| 161 | |
| 162 | // Alert message for disable failure |
| 163 | STATIC VOID DisableMessage(IN EFI_STATUS Status, |
| 164 | IN CHAR16 *String, |
| 165 | IN CHAR16 *ErrorString) |
| 166 | { |
| 167 | XStringW Str; |
| 168 | if (ErrorString != NULL) { |
| 169 | Str = SWPrintf(L"%ls\n%ls\n%ls", String, ErrorString, efiStrError(Status)); |
| 170 | } else { |
| 171 | Str = SWPrintf(L"%s\n%s", String, efiStrError(Status)); |
| 172 | } |
| 173 | DBG("Secure Boot: %ls", Str.wc_str()); |
| 174 | AlertMessage(L"Disable Secure Boot", Str); |
| 175 | } |
| 176 | |
| 177 | // Disable secure boot |
| 178 | VOID DisableSecureBoot(VOID) |
no test coverage detected