From 376d81861e28c0b7d1dd874e818be6a5ff56c32d Mon Sep 17 00:00:00 2001 From: Regina König Date: Fri, 30 Jul 2021 20:50:50 +0200 Subject: Outcomment debug code which lets it stop after a found error --- efi_memtest/memtest86+/efi/test.c | 3 --- efi_memtest/memtest86+/error.c | 7 +++++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'efi_memtest') diff --git a/efi_memtest/memtest86+/efi/test.c b/efi_memtest/memtest86+/efi/test.c index 8d4eca0..9558582 100644 --- a/efi_memtest/memtest86+/efi/test.c +++ b/efi_memtest/memtest86+/efi/test.c @@ -434,9 +434,6 @@ STATIC void addr_tst2_check_segment(ulong* p, for (; p <= pe; p++) { - - - if((bad = *p) != (ulong)p) { ad_err2((ulong *)p, bad); } diff --git a/efi_memtest/memtest86+/error.c b/efi_memtest/memtest86+/error.c index f256e5d..f2e4227 100644 --- a/efi_memtest/memtest86+/error.c +++ b/efi_memtest/memtest86+/error.c @@ -111,7 +111,9 @@ void ad_err1(ulong *adr1, ulong *mask, ulong bad, ulong good) void ad_err2(ulong *adr, ulong bad) { - if (logflag) { + + // TODO remove. Just for debugging +/* if (logflag) { print_log("ad_err2(): FOUND ERROR IN MEMORY TEST # 2", 41); } if (logflag && log_tst2) { @@ -127,10 +129,11 @@ void ad_err2(ulong *adr, ulong bad) print_log(log, length); } - while(1); + while(1);*/ //query_memory_table(); // TODO remove //print_pmap(); // TODO remove + // spin_lock(&barr->mutex); /*if (logflag) { print_log("ad_err2(): after spin_lock", 26); -- cgit v1.2.3-55-g7522