From ed9c11c90d30484072a3d39d8b6660992699198e Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Mon, 31 Oct 2016 16:03:50 +1030 Subject: gard: Fix printf warning With a modern GCC targetting ARM 32-bit: gard.c: In function 'main': gard.c:652:19: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=] fprintf(stderr, "MTD device bigger than %i: size:%lu\n", Signed-off-by: Joel Stanley Signed-off-by: Stewart Smith --- external/gard/gard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'external') diff --git a/external/gard/gard.c b/external/gard/gard.c index 7ec52d8..4b26a3b 100644 --- a/external/gard/gard.c +++ b/external/gard/gard.c @@ -24,6 +24,7 @@ #include #include #include +#include #include @@ -649,7 +650,7 @@ int main(int argc, char **argv) goto out; if (bl_size > UINT_MAX) { - fprintf(stderr, "MTD device bigger than %i: size:%lu\n", + fprintf(stderr, "MTD device bigger than %i: size: %" PRIu64 "\n", UINT_MAX, bl_size); rc = EXIT_FAILURE; goto out; -- cgit v1.1