summaryrefslogtreecommitdiffstats
path: root/common/uimage.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-15 15:31:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-15 15:33:59 +0100
commite2306ada3ee62a9dcf82c072477d9eeeb8bbede3 (patch)
tree638bfbfbda2bf6fa1711c26d6d1566bc8f9888ed /common/uimage.c
parent7f2e215fcfce225a3e6e09a0364693e2ada0cdd2 (diff)
downloadbarebox-e2306ada3ee62a9dcf82c072477d9eeeb8bbede3.tar.gz
Convert users of PRINTF_CONVERSION_RESOURCE to %pa
printf now supports printing resource_size_t directly, convert all users of the previously used PRINTF_CONVERSION_RESOURCE over to %pa. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/uimage.c')
-rw-r--r--common/uimage.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/uimage.c b/common/uimage.c
index a7011a7..59d7b65 100644
--- a/common/uimage.c
+++ b/common/uimage.c
@@ -354,10 +354,9 @@ static int uimage_sdram_flush(void *buf, unsigned int len)
uimage_resource = request_sdram_region("uimage",
start, size);
if (!uimage_resource) {
- printf("unable to request SDRAM "
- PRINTF_CONVERSION_RESOURCE "-"
- PRINTF_CONVERSION_RESOURCE "\n",
- start, start + size - 1);
+ resource_size_t prsize = start + size - 1;
+ printf("unable to request SDRAM %pa - %pa\n",
+ &start, &prsize);
return -ENOMEM;
}
}