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

Function GetMemLogLen

Library/MemLogLibDefault/MemLogLib.c:368–384  ·  view source on GitHub ↗

Returns the length of log (number of chars written) in mem buffer. **/

Source from the content-addressed store, hash-verified

366 Returns the length of log (number of chars written) in mem buffer.
367 **/
368UINTN
369EFIAPI
370GetMemLogLen (
371 VOID
372 )
373{
374 EFI_STATUS Status;
375
376 if (mMemLog == NULL) {
377 Status = MemLogInit ();
378 if (EFI_ERROR(Status)) {
379 return 0;
380 }
381 }
382
383 return mMemLog != NULL ? mMemLog->Cursor - mMemLog->Buffer : 0;
384}
385
386/**
387 Sets callback that will be called when message is added to mem log.

Callers 6

SetupBooterLogFunction · 0.85
SaveBooterLogFunction · 0.85
SaveOemTablesFunction · 0.85
SaveHdaDumpTxtFunction · 0.85
BdmesgMainFunction · 0.85

Calls 1

MemLogInitFunction · 0.85

Tested by

no test coverage detected