memtest: Fix integer size/type printf errors
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 8 Jul 2020 03:17:48 +0000 (13:17 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 8 Jul 2020 03:17:48 +0000 (13:17 +1000)
commit798b3d7ba41567bf4f1f8671448d85f59062d9ea
tree1d3810b7d2084f0b8efd18a9f2965bb4c041ebd5
parent8af4e05c7ffaf1285356eda0d30eec80f8f757d1
memtest: Fix integer size/type printf errors

In a couple of places, memtest uses %x to print a pointer which
is illegal (and could be problematic on 64-bit). Use %p instead.

Additionally, use %ld when printing longs

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
litex/soc/software/libbase/memtest.c