summaryrefslogtreecommitdiffstats
path: root/uncrypt/uncrypt.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-19 23:30:25 +0100
committerMark Salyzyn <salyzyn@google.com>2014-03-19 23:30:25 +0100
commit2605dec597f7ebabf31b7e9430f19ab888b2919a (patch)
treecdfd509e6019b77417d7ea641dc5672e4682e33a /uncrypt/uncrypt.c
parentam 03002477: am bacf9b45: add --shutdown_after option to recovery (diff)
downloadandroid_bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar
android_bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar.gz
android_bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar.bz2
android_bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar.lz
android_bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar.xz
android_bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.tar.zst
android_bootable_recovery-2605dec597f7ebabf31b7e9430f19ab888b2919a.zip
Diffstat (limited to 'uncrypt/uncrypt.c')
-rw-r--r--uncrypt/uncrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uncrypt/uncrypt.c b/uncrypt/uncrypt.c
index 7c2d99477..24d1ffc2a 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;