diff options
Diffstat (limited to 'commands/memtest.c')
-rw-r--r-- | commands/memtest.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/commands/memtest.c b/commands/memtest.c index 99d4864e70..dc8f7db279 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -33,12 +33,10 @@ static int do_test_one_area(struct mem_test_resource *r, int bus_only, { int ret; - printf("Testing memory space: " - "0x%08x -> 0x%08x:\n", - r->r->start, r->r->end); + printf("Testing memory space: %pa -> %pa:\n", + &r->r->start, &r->r->end); - remap_range((void *)r->r->start, r->r->end - - r->r->start + 1, cache_flag); + remap_range((void *)r->r->start, resource_size(r->r), cache_flag); ret = mem_test_bus_integrity(r->r->start, r->r->end); if (ret < 0) |