summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2014-01-16 12:53:11 -0600
committerElliott Hughes2014-01-16 14:54:18 -0600
commitccecf1425412beb2bc3bb38d470293fdc244d6f1 (patch)
tree9fd922197bc88bed453efa0738f3dfb5d6db4c3c /libsparse
parente847f429f43ae56aaa406697ca603c8469e2100b (diff)
downloadplatform-system-core-ccecf1425412beb2bc3bb38d470293fdc244d6f1.tar.gz
platform-system-core-ccecf1425412beb2bc3bb38d470293fdc244d6f1.tar.xz
platform-system-core-ccecf1425412beb2bc3bb38d470293fdc244d6f1.zip
system/core 64-bit cleanup.
This cleans up most of the size-related problems in system/core. There are still a few changes needed for a clean 64-bit build, but they look like they might require changes to things like the fastboot protocol. Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
Diffstat (limited to 'libsparse')
-rw-r--r--libsparse/output_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsparse/output_file.c b/libsparse/output_file.c
index a28b0a5ad..e63c4a929 100644
--- a/libsparse/output_file.c
+++ b/libsparse/output_file.c
@@ -18,6 +18,7 @@
18#define _LARGEFILE64_SOURCE 1 18#define _LARGEFILE64_SOURCE 1
19 19
20#include <fcntl.h> 20#include <fcntl.h>
21#include <inttypes.h>
21#include <limits.h> 22#include <limits.h>
22#include <stdbool.h> 23#include <stdbool.h>
23#include <stddef.h> 24#include <stddef.h>
@@ -342,7 +343,7 @@ static int write_sparse_skip_chunk(struct output_file *out, int64_t skip_len)
342 int ret, chunk; 343 int ret, chunk;
343 344
344 if (skip_len % out->block_size) { 345 if (skip_len % out->block_size) {
345 error("don't care size %llu is not a multiple of the block size %u", 346 error("don't care size %"PRIi64" is not a multiple of the block size %u",
346 skip_len, out->block_size); 347 skip_len, out->block_size);
347 return -1; 348 return -1;
348 } 349 }