summaryrefslogtreecommitdiff
path: root/kexec/kexec-uImage.c
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-06-06 17:59:18 +0100
committerSimon Horman <horms@verge.net.au>2016-06-08 09:21:52 +0900
commit58a5eb73678e23f2f2645bc20c3b2bb530cd2ccc (patch)
treee63c5881dd63b2ec32965b1a28c144920c17f4dd /kexec/kexec-uImage.c
parent1c28b55604f388582253e7c7f07c48565a7213d7 (diff)
kexec: fix warnings caused by selecting 64-bit file IO on 32-bit platforms
Fix warnings caused by selecting 64-bit file IO on 32-bit platforms. kexec/kexec.c:710:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'off_t' [-Wformat] kexec/zlib.c:63:4: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'off_t' [-Wformat] kexec/kexec-uImage.c:85:3: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'off_t' [-Wformat] Acked-by: Baoquan He <bhe@redhat.com> Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec-uImage.c')
-rw-r--r--kexec/kexec-uImage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/kexec-uImage.c b/kexec/kexec-uImage.c
index 9df601b..5e24629 100644
--- a/kexec/kexec-uImage.c
+++ b/kexec/kexec-uImage.c
@@ -82,7 +82,8 @@ int uImage_probe(const unsigned char *buf, off_t len, unsigned int arch)
if (be32_to_cpu(header.ih_size) > len - sizeof(header)) {
printf("uImage header claims that image has %d bytes\n",
be32_to_cpu(header.ih_size));
- printf("we read only %ld bytes.\n", len - sizeof(header));
+ printf("we read only %lld bytes.\n",
+ (long long)len - sizeof(header));
return -1;
}
#ifdef HAVE_LIBZ