diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-02 17:18:45 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-05 09:35:31 +0200 |
commit | 8f8a18906b8280645a5ee560de78b00799eef767 (patch) | |
tree | bae6325c4d7d52368f30b334e02cc4166f49b5d6 /common | |
parent | 0831642edc4cd48b03b72df44b17180c22f338bd (diff) | |
download | barebox-8f8a18906b8280645a5ee560de78b00799eef767.tar.gz barebox-8f8a18906b8280645a5ee560de78b00799eef767.tar.xz |
fix format specifiers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/bootm.c | 4 | ||||
-rw-r--r-- | common/uimage.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/common/bootm.c b/common/bootm.c index 871959c547..71390cb845 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -312,7 +312,7 @@ static int bootm_open_oftree(struct image_data *data, const char *oftree, int nu static void bootm_print_info(struct image_data *data) { if (data->os_res) - printf("OS image is at 0x%08x-0x%08x\n", + printf("OS image is at " PRINTF_CONVERSION_RESOURCE "-" PRINTF_CONVERSION_RESOURCE "\n", data->os_res->start, data->os_res->end); else @@ -329,7 +329,7 @@ static void bootm_print_info(struct image_data *data) printf(", multifile image %d", data->initrd_num); printf("\n"); if (data->initrd_res) - printf("initrd is at 0x%08x-0x%08x\n", + printf("initrd is at " PRINTF_CONVERSION_RESOURCE "-" PRINTF_CONVERSION_RESOURCE "\n", data->initrd_res->start, data->initrd_res->end); else diff --git a/common/uimage.c b/common/uimage.c index 243dfb0df5..4ef09682c1 100644 --- a/common/uimage.c +++ b/common/uimage.c @@ -353,7 +353,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 0x%08x-0x%08x\n", + printf("unable to request SDRAM " + PRINTF_CONVERSION_RESOURCE "-" + PRINTF_CONVERSION_RESOURCE "\n", start, start + size - 1); return -ENOMEM; } |