summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRegia König2021-06-07 19:31:29 +0200
committerRegia König2021-06-07 19:31:29 +0200
commit3a7e89a15c54abe4139cf4baabe81c417b055816 (patch)
tree5bdcfcfa8a82a6117448fdf69416b0d49bfc0ee9
parentAdd SMBIOS and SMBIOS3 Guid (diff)
downloadmemtest86-3a7e89a15c54abe4139cf4baabe81c417b055816.tar.gz
memtest86-3a7e89a15c54abe4139cf4baabe81c417b055816.tar.xz
memtest86-3a7e89a15c54abe4139cf4baabe81c417b055816.zip
Log Guids found in SystemTable
-rw-r--r--efi_memtest/memtest86+/efi/dmi.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/efi_memtest/memtest86+/efi/dmi.c b/efi_memtest/memtest86+/efi/dmi.c
index e16e482..7f3ffd3 100644
--- a/efi_memtest/memtest86+/efi/dmi.c
+++ b/efi_memtest/memtest86+/efi/dmi.c
@@ -208,23 +208,23 @@ int open_dmi(void) {
for (int i = 0; i < NumberOfTableEntries; i++) {
EFI_GUID guid = ct->VendorGuid;
-
+ /*
Print(L"GUID: %x-%x-%x-%x-%x-%x-%x-%x-%x-%x-%x",
guid.Data1, guid.Data2, guid.Data3,
guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
- guid.Data4[4], guid.Data4[5], guid.Data4[6], guid.Data4[7]);
+ guid.Data4[4], guid.Data4[5], guid.Data4[6], guid.Data4[7]);*/
if (abc(&guid, &acpi_20)) {
- Print(L" EFI_ACPI_20_TABLE_GUID");
+ print_log("EFI_ACPI_20_TABLE_GUID", 22);
} else if (abc(&guid, &smbios)) {
- Print(L" SMBIOS_TABLE_GUID");
+ print_log("SMBIOS_TABLE_GUID", 17);
+ } else if (abc(&guid, &smbios3)) {
+ print_log("SMBIOS3_TABLE_GUID", 18);
} else if (abc(&guid, &acpi_10)) {
- Print(L" ACPI_10_TABLE_GUID");
+ print_log("ACPI_10_TABLE_GUID", 22);
} else {
print_log("Unknown table-GUID.", 19);
}
-
- Print(L"\n");
ct++;
}
@@ -314,7 +314,11 @@ void init_dmi(void){
int i;
for(i=0; i < MAX_DMI_MEMDEVS; i++)
dmi_err_cnts[i]=0;
+
open_dmi();
+
+ if (logflag) print_log("Dmi openend.", 12);
+
dmi_initialized=1;
}