libbase/memtest: revert previous printf (the informations are provided below and this make it too verbose).

This commit is contained in:
Florent Kermarrec 2020-10-07 12:42:58 +02:00
parent 5e2a4efac6
commit 0a80e4c3d6
1 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ void memspeed(unsigned int *addr, unsigned long size, bool read_only)
__attribute__((unused)) unsigned long data;
const unsigned int sz = sizeof(unsigned long);
printf("Memspeed at 0x%p size 0x%x (%u read or write operations), read_only? %s...\n", addr, size, (size/sz), read_only?"true":"false");
printf("Memspeed at 0x%p...\n", addr);
/* init timer */
timer0_en_write(0);
@ -199,7 +199,7 @@ void memspeed(unsigned int *addr, unsigned long size, bool read_only)
}
timer0_update_value_write(1);
end = timer0_value_read();
uint64_t numerator = ((uint64_t)size)*((uint64_t)CONFIG_CLOCK_FREQUENCY);
uint64_t numerator = ((uint64_t)size)*((uint64_t)CONFIG_CLOCK_FREQUENCY);
uint64_t denominator = ((uint64_t)start - (uint64_t)end);
write_speed = numerator/denominator;
printf(" Write speed: %lub/s\n", write_speed);
@ -233,7 +233,7 @@ int memtest(unsigned int *addr, unsigned long maxsize)
unsigned long addr_size = MEMTEST_ADDR_SIZE < maxsize ? MEMTEST_ADDR_SIZE : maxsize;
unsigned long data_size = maxsize;
printf("Memtest at 0x%p size 0x%x...\n", addr, maxsize);
printf("Memtest at 0x%p...\n", addr);
bus_errors = memtest_bus(addr, bus_size);
addr_errors = memtest_addr(addr, addr_size, MEMTEST_ADDR_RANDOM);