diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-12-17 10:22:21 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-01-28 12:55:14 +0100 |
commit | eb7f908a163bff7295547b734e2cc716f12235c4 (patch) | |
tree | 6e66e7535c426e606137581c05d1319b04cbf51f /tools/imx8image.c | |
parent | 88b5002b340ecd3f72d3e7371d01104e827a1f9a (diff) |
tools: imx8image: use correct printf escape sequence
core is of type uint64_t. So for printing we need "%"PRIu64 (not "%lu").
Without the patch a warning is issued when building on a 32bit system.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'tools/imx8image.c')
-rw-r--r-- | tools/imx8image.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/imx8image.c b/tools/imx8image.c index 435f308b99..2ccc0cccb4 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -555,7 +555,8 @@ static void set_image_array_entry(flash_header_v3_t *container, } else if (soc == QM && core == CORE_CA72) { meta = IMAGE_A72_DEFAULT_META(custom_partition); } else { - fprintf(stderr, "Error: invalid AP core id: %lu\n", + fprintf(stderr, + "Error: invalid AP core id: %" PRIu64 "\n", core); exit(EXIT_FAILURE); } @@ -577,7 +578,9 @@ static void set_image_array_entry(flash_header_v3_t *container, core = CORE_CM4_1; meta = IMAGE_M4_1_DEFAULT_META(custom_partition); } else { - fprintf(stderr, "Error: invalid m4 core id: %lu\n", core); + fprintf(stderr, + "Error: invalid m4 core id: %" PRIu64 "\n", + core); exit(EXIT_FAILURE); } img->hab_flags |= IMG_TYPE_EXEC; |