aboutsummaryrefslogtreecommitdiffstats
path: root/uncrypt
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-19 15:30:25 -0700
committerMark Salyzyn <salyzyn@google.com>2014-03-19 15:30:25 -0700
commit2605dec597f7ebabf31b7e9430f19ab888b2919a (patch)
treecdfd509e6019b77417d7ea641dc5672e4682e33a /uncrypt
parentb07b3d15b9b36c286440412e489659131e738e74 (diff)
downloadbootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.zip
bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar.gz
bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar.bz2
recovery: 64 bit build issues
Change-Id: Ie88c49dea13cce5f4eb428e97f5a0956f2656a30
Diffstat (limited to 'uncrypt')
-rw-r--r--uncrypt/uncrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uncrypt/uncrypt.c b/uncrypt/uncrypt.c
index 7c2d994..24d1ffc 100644
--- a/uncrypt/uncrypt.c
+++ b/uncrypt/uncrypt.c
@@ -189,10 +189,10 @@ int produce_block_map(const char* path, const char* map_file, const char* blk_de
return -1;
}
- printf(" block size: %ld bytes\n", sb.st_blksize);
+ printf(" block size: %ld bytes\n", (long)sb.st_blksize);
int blocks = ((sb.st_size-1) / sb.st_blksize) + 1;
- printf(" file size: %lld bytes, %d blocks\n", sb.st_size, blocks);
+ printf(" file size: %lld bytes, %d blocks\n", (long long)sb.st_size, blocks);
int* ranges;
int range_alloc = 1;
@@ -201,7 +201,7 @@ int produce_block_map(const char* path, const char* map_file, const char* blk_de
ranges[0] = -1;
ranges[1] = -1;
- fprintf(mapf, "%s\n%lld %lu\n", blk_dev, sb.st_size, sb.st_blksize);
+ fprintf(mapf, "%s\n%lld %lu\n", blk_dev, (long long)sb.st_size, (unsigned long)sb.st_blksize);
unsigned char* buffers[WINDOW_SIZE];
int i;