From 7beffba1873cc5213d6e10c5f7db3f55ecf1975e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 29 Jun 2020 09:51:34 +0200 Subject: [PATCH] software/libbase/memtest: fix bus errors reporting. --- litex/soc/software/libbase/memtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/libbase/memtest.c b/litex/soc/software/libbase/memtest.c index 80f5cf465..9ab59f90c 100644 --- a/litex/soc/software/libbase/memtest.c +++ b/litex/soc/software/libbase/memtest.c @@ -228,7 +228,7 @@ int memtest(unsigned int *addr, unsigned long maxsize) data_errors = memtest_data(addr, data_size, MEMTEST_DATA_RANDOM); if(bus_errors + addr_errors + data_errors != 0) { - printf("- bus errors: %d/%d\n", bus_errors, bus_size/4); + printf("- bus errors: %d/%d\n", bus_errors, 2*bus_size/4); printf("- addr errors: %d/%d\n", addr_errors, addr_size/4); printf("- data errors: %d/%d\n", data_errors, data_size/4); printf("Memtest KO\n");