diff options
author | Chih-hung Hsieh <chh@google.com> | 2016-04-19 00:39:41 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-04-19 00:39:41 +0200 |
commit | 7140a083c7d37a86ae95bb671fd5dd932b272e6b (patch) | |
tree | 3fca7568ae457f415fe41088a497f7de328afd54 /uncrypt | |
parent | Merge "Fix IWYU errors." am: 51dcd0d am: 405db92 (diff) | |
parent | Merge "Fix google-runtime-int warnings." am: a1f4a1e am: bcad1d1 (diff) | |
download | android_bootable_recovery-7140a083c7d37a86ae95bb671fd5dd932b272e6b.tar android_bootable_recovery-7140a083c7d37a86ae95bb671fd5dd932b272e6b.tar.gz android_bootable_recovery-7140a083c7d37a86ae95bb671fd5dd932b272e6b.tar.bz2 android_bootable_recovery-7140a083c7d37a86ae95bb671fd5dd932b272e6b.tar.lz android_bootable_recovery-7140a083c7d37a86ae95bb671fd5dd932b272e6b.tar.xz android_bootable_recovery-7140a083c7d37a86ae95bb671fd5dd932b272e6b.tar.zst android_bootable_recovery-7140a083c7d37a86ae95bb671fd5dd932b272e6b.zip |
Diffstat (limited to 'uncrypt')
-rw-r--r-- | uncrypt/uncrypt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/uncrypt/uncrypt.cpp b/uncrypt/uncrypt.cpp index 0e14da13f..5697712aa 100644 --- a/uncrypt/uncrypt.cpp +++ b/uncrypt/uncrypt.cpp @@ -262,8 +262,9 @@ static int produce_block_map(const char* path, const char* map_file, const char* std::vector<int> ranges; - std::string s = android::base::StringPrintf("%s\n%" PRId64 " %ld\n", - blk_dev, sb.st_size, static_cast<long>(sb.st_blksize)); + std::string s = android::base::StringPrintf("%s\n%" PRId64 " %" PRId64 "\n", + blk_dev, static_cast<int64_t>(sb.st_size), + static_cast<int64_t>(sb.st_blksize)); if (!android::base::WriteStringToFd(s, mapfd)) { ALOGE("failed to write %s: %s", tmp_map_file.c_str(), strerror(errno)); return -1; |