From 0a80e4c3d6d368c7cf39c84e3734416b0a1e414b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 7 Oct 2020 12:42:58 +0200 Subject: [PATCH] libbase/memtest: revert previous printf (the informations are provided below and this make it too verbose). --- litex/soc/software/libbase/memtest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/soc/software/libbase/memtest.c b/litex/soc/software/libbase/memtest.c index 4de9ce689..0cae85a7f 100644 --- a/litex/soc/software/libbase/memtest.c +++ b/litex/soc/software/libbase/memtest.c @@ -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);