summaryrefslogtreecommitdiffstats
path: root/commands/memtest.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-09-17 22:03:42 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-09-19 09:31:16 +0200
commit589bbbeccdc574d4c964d3f404a2e0605a545a4e (patch)
treeeaf00ef4b57a7f806846be11b29132d64bb2c1f2 /commands/memtest.c
parent37bc0b2daf75a11fe7ae94c574be6ca2d053126d (diff)
downloadbarebox-589bbbeccdc574d4c964d3f404a2e0605a545a4e.tar.gz
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 <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/memtest.c')
-rw-r--r--commands/memtest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/memtest.c b/commands/memtest.c
index 99d4864..403ab91 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);