From 3d1a65adb41db2758827fe81f36d92ab61618ea3 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 11 Oct 2015 19:00:41 +0000 Subject: tools: firmware-utils: fix compiler warnings This just fixes a lot of compiler warnings. Signed-off-by: Hauke Mehrtens SVN-Revision: 47181 --- tools/firmware-utils/src/imagetag.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/firmware-utils/src/imagetag.c') diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c index f04f98d560..6a46a7ebd9 100644 --- a/tools/firmware-utils/src/imagetag.c +++ b/tools/firmware-utils/src/imagetag.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "bcm_tag.h" #include "imagetag_cmdline.h" @@ -304,7 +305,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \ sprintf(tag.totalLength, "%lu", imagelen); if (args->cfe_given) { - sprintf(tag.cfeAddress, "%lu", flash_start); + sprintf(tag.cfeAddress, "%" PRIu32, flash_start); sprintf(tag.cfeLength, "%lu", cfelen); } else { /* We don't include CFE */ @@ -345,7 +346,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \ } if (args->altinfo_given) { - strncpy(&tag.information1[0], args->altinfo_arg, ALTTAGINFO_LEN); + strncpy(tag.information1, args->altinfo_arg, TAGINFO1_LEN); } if (args->second_image_flag_given) { -- cgit v1.2.3