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

Function SaveBooterLog

rEFIt_UEFI/Platform/BootLog.cpp:216–229  ·  view source on GitHub ↗

Made msgbuf and msgCursor private to this source so we need a different way of saving the msg log - apianti

Source from the content-addressed store, hash-verified

214// Made msgbuf and msgCursor private to this source
215// so we need a different way of saving the msg log - apianti
216EFI_STATUS SaveBooterLog(IN EFI_FILE_HANDLE BaseDir OPTIONAL, IN CONST CHAR16 *FileName)
217{
218 CHAR8 *MemLogBuffer;
219 UINTN MemLogLen;
220
221 MemLogBuffer = GetMemLogBuffer();
222 MemLogLen = GetMemLogLen();
223
224 if (MemLogBuffer == NULL || MemLogLen == 0) {
225 return EFI_NOT_FOUND;
226 }
227
228 return egSaveFile(BaseDir, FileName, (UINT8*)MemLogBuffer, MemLogLen);
229}
230

Callers 6

StartLoaderMethod · 0.85
bootElToritoFunction · 0.85
bootMBRFunction · 0.85
bootPBRtestFunction · 0.85
bootPBRFunction · 0.85
RunGenericMenuMethod · 0.85

Calls 2

GetMemLogLenFunction · 0.85
egSaveFileFunction · 0.85

Tested by

no test coverage detected