mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
libbase/memtest: remove 0x no longer required with %p.
This commit is contained in:
parent
01a2fc11e2
commit
1a38d51e08
1 changed files with 3 additions and 3 deletions
|
@ -202,7 +202,7 @@ int memtest_data(unsigned int *addr, unsigned long size, int random)
|
||||||
if(rdata != seed_32) {
|
if(rdata != seed_32) {
|
||||||
errors++;
|
errors++;
|
||||||
#ifdef MEMTEST_DATA_DEBUG
|
#ifdef MEMTEST_DATA_DEBUG
|
||||||
printf("memtest_data error @%p: 0x%08x vs 0x%08x\n", addr + i, rdata, seed_32);
|
printf("memtest_data error @ %p: 0x%08x vs 0x%08x\n", addr + i, rdata, seed_32);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (i%0x8000 == 0)
|
if (i%0x8000 == 0)
|
||||||
|
@ -224,7 +224,7 @@ void memspeed(unsigned int *addr, unsigned long size, bool read_only)
|
||||||
__attribute__((unused)) unsigned long data;
|
__attribute__((unused)) unsigned long data;
|
||||||
const unsigned int sz = sizeof(unsigned long);
|
const unsigned int sz = sizeof(unsigned long);
|
||||||
|
|
||||||
printf("Memspeed at 0x%p (", addr);
|
printf("Memspeed at %p (", addr);
|
||||||
print_size(size);
|
print_size(size);
|
||||||
printf(")...\n");
|
printf(")...\n");
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ int memtest(unsigned int *addr, unsigned long maxsize)
|
||||||
unsigned long addr_size = MEMTEST_ADDR_SIZE < maxsize ? MEMTEST_ADDR_SIZE : maxsize;
|
unsigned long addr_size = MEMTEST_ADDR_SIZE < maxsize ? MEMTEST_ADDR_SIZE : maxsize;
|
||||||
unsigned long data_size = maxsize;
|
unsigned long data_size = maxsize;
|
||||||
|
|
||||||
printf("Memtest at 0x%p (", addr);
|
printf("Memtest at %p (", addr);
|
||||||
print_size(data_size);
|
print_size(data_size);
|
||||||
printf(")...\n");
|
printf(")...\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue