Returns the length of log (number of chars written) in mem buffer. **/
| 366 | Returns the length of log (number of chars written) in mem buffer. |
| 367 | **/ |
| 368 | UINTN |
| 369 | EFIAPI |
| 370 | GetMemLogLen ( |
| 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. |
no test coverage detected