software/libbase/memtest: fix bus errors reporting.

This commit is contained in:
Florent Kermarrec 2020-06-29 09:51:34 +02:00
parent ad76f5f3d8
commit 7beffba187
1 changed files with 1 additions and 1 deletions

View File

@ -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");