From 589bbbeccdc574d4c964d3f404a2e0605a545a4e Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 17 Sep 2018 22:03:42 -0700 Subject: memtest: Adjust code for 64-bit architectures Make use of %pa specifier to avoid warnings when building against 64-bit CPU (specifically AArch64) as well as adjust a number of patterns to be 64-bits wide. Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- commands/memtest.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'commands') diff --git a/commands/memtest.c b/commands/memtest.c index 99d4864e70..403ab91f6f 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -33,9 +33,8 @@ 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); -- cgit v1.2.3