Sets callback that will be called when message is added to mem log. **/
| 387 | Sets callback that will be called when message is added to mem log. |
| 388 | **/ |
| 389 | VOID |
| 390 | EFIAPI |
| 391 | SetMemLogCallback ( |
| 392 | MEM_LOG_CALLBACK Callback |
| 393 | ) |
| 394 | { |
| 395 | EFI_STATUS Status; |
| 396 | |
| 397 | if (mMemLog == NULL) { |
| 398 | Status = MemLogInit (); |
| 399 | if (EFI_ERROR(Status)) { |
| 400 | return; |
| 401 | } |
| 402 | } |
| 403 | mMemLog->Callback = Callback; |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | Returns TSC ticks per second. |
no test coverage detected