From 03eb137449b913047a500c69a9048d8aec012799 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 8 Jan 2018 11:43:49 +0100 Subject: [PATCH] bios/sdram: fix data error reporting --- litex/soc/software/bios/sdram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index e83483db..ba1bd216 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -582,7 +582,7 @@ int memtest(void) printf("Memtest bus failed: %d/%d errors\n", bus_errors, 2*128); data_errors = memtest_data(); - if(bus_errors != 0) + if(data_errors != 0) printf("Memtest data failed: %d/%d errors\n", data_errors, MEMTEST_DATA_SIZE/4); addr_errors = memtest_addr(); -- 2.30.2