software/libbase/memtest: fix bus errors reporting.
This commit is contained in:
parent
ad76f5f3d8
commit
7beffba187
|
@ -228,7 +228,7 @@ int memtest(unsigned int *addr, unsigned long maxsize)
|
||||||
data_errors = memtest_data(addr, data_size, MEMTEST_DATA_RANDOM);
|
data_errors = memtest_data(addr, data_size, MEMTEST_DATA_RANDOM);
|
||||||
|
|
||||||
if(bus_errors + addr_errors + data_errors != 0) {
|
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("- addr errors: %d/%d\n", addr_errors, addr_size/4);
|
||||||
printf("- data errors: %d/%d\n", data_errors, data_size/4);
|
printf("- data errors: %d/%d\n", data_errors, data_size/4);
|
||||||
printf("Memtest KO\n");
|
printf("Memtest KO\n");
|
||||||
|
|
Loading…
Reference in New Issue