From: Florent Kermarrec Date: Mon, 8 Jan 2018 10:43:49 +0000 (+0100) Subject: bios/sdram: fix data error reporting X-Git-Tag: 24jan2021_ls180~1770 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03eb137449b913047a500c69a9048d8aec012799;p=litex.git bios/sdram: fix data error reporting --- 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();