summaryrefslogtreecommitdiffstats
path: root/efi_memtest
diff options
context:
space:
mode:
authorRegia König2021-06-14 12:49:57 +0200
committerRegia König2021-06-14 12:49:57 +0200
commita308525e189f5123d12e057ef0b8d040f8c7d014 (patch)
treef4475032ef845dd8f678d0fbac105ac711c9f0e7 /efi_memtest
parentCreate dedicated file for logger configuration (diff)
downloadmemtest86-a308525e189f5123d12e057ef0b8d040f8c7d014.tar.gz
memtest86-a308525e189f5123d12e057ef0b8d040f8c7d014.tar.xz
memtest86-a308525e189f5123d12e057ef0b8d040f8c7d014.zip
Resolve some compilation errors
Diffstat (limited to 'efi_memtest')
-rw-r--r--efi_memtest/logger_config.h18
-rw-r--r--efi_memtest/memtest86+/efi/dmi.c4
2 files changed, 20 insertions, 2 deletions
diff --git a/efi_memtest/logger_config.h b/efi_memtest/logger_config.h
new file mode 100644
index 0000000..6d9fc9e
--- /dev/null
+++ b/efi_memtest/logger_config.h
@@ -0,0 +1,18 @@
+// General
+short logflag = 1;
+short log_fine = 0;
+
+// Timing
+short log_cpuspeed = 0;
+short log_memspeed = 0;
+
+// Memory
+short log_mem_tbl = 1;
+short log_comp_seg = 0;
+short log_print_pmap = 1;
+short log_pmap = 1;
+
+// Hardware Information
+short log_mem_ctrl = 0;
+short log_pci_conf = 0;
+short log_dmi = 0; \ No newline at end of file
diff --git a/efi_memtest/memtest86+/efi/dmi.c b/efi_memtest/memtest86+/efi/dmi.c
index bb3cacd..22e4d25 100644
--- a/efi_memtest/memtest86+/efi/dmi.c
+++ b/efi_memtest/memtest86+/efi/dmi.c
@@ -411,14 +411,14 @@ void print_dmi_startup_info(void)
print_log(log, length);
}
- if (logflag && lg_dmi) {
+ if (logflag && log_dmi) {
char log[16] = "sl1 = ";
int length = 6;
int_to_charr(sl1, log, &length);
print_log(log, length);
}
- if (logflag && log_mem_ctrl) {
+ if (logflag && log_dmi) {
char log[60] = "print_dmi_startup_info(): productname = ";
int length = 40;
string_to_charr(string2, log, &length);