diff options
author | Regina König | 2020-08-04 13:09:42 +0200 |
---|---|---|
committer | Regina König | 2020-08-04 13:09:42 +0200 |
commit | a7365a570c99c949c135e2c1e1cc2a3802976c07 (patch) | |
tree | 78dc98ed5a650db2ac34776cc842468f4d5dbe51 /efi_memtest/MemtestEfi.c | |
parent | Trying to get access to file via file-protocol (diff) | |
download | memtest86-a7365a570c99c949c135e2c1e1cc2a3802976c07.tar.gz memtest86-a7365a570c99c949c135e2c1e1cc2a3802976c07.tar.xz memtest86-a7365a570c99c949c135e2c1e1cc2a3802976c07.zip |
logger has a flag to log or not. Display function now clears the screen and sets colors.
Diffstat (limited to 'efi_memtest/MemtestEfi.c')
-rw-r--r-- | efi_memtest/MemtestEfi.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/efi_memtest/MemtestEfi.c b/efi_memtest/MemtestEfi.c index 535b799..0f1aa18 100644 --- a/efi_memtest/MemtestEfi.c +++ b/efi_memtest/MemtestEfi.c @@ -4,7 +4,8 @@ #include "Library/UefiApplicationEntryPoint.h" #include "Guid/FileSystemInfo.h" -#include "memtest86+/efi/main.h" +#include "memtest86+/efi/main.h" // TODO move into main dir +#include "memtest86+/efi/logger.h" EFI_STATUS EFIAPI @@ -14,13 +15,13 @@ UefiMain ( ) { - char world[] = "jhgh"; - Print(L"Test %a\n\0", world); - Print(L"MemtestEfi started\n"); + char *msg = "MemtestEfi started\n"; + print_log(msg, sizeof(*msg)); test_start(); - Print(L"Test finished!\n"); - while(1) {} + char *msg2 = "Test finished!\n"; + print_log(msg2, sizeof(*msg2)); + //while(1) {} return EFI_SUCCESS; |