diff options
author | Chih-hung Hsieh <chh@google.com> | 2016-04-19 00:19:06 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-04-19 00:19:06 +0200 |
commit | a1f4a1ec3319ee1ab869a46805bff63550b56ca7 (patch) | |
tree | ad6f90bea569c5f01bbf9485e356dcdb035d79c5 /uncrypt/uncrypt.cpp | |
parent | Merge "Fix IWYU errors." (diff) | |
parent | Fix google-runtime-int warnings. (diff) | |
download | android_bootable_recovery-a1f4a1ec3319ee1ab869a46805bff63550b56ca7.tar android_bootable_recovery-a1f4a1ec3319ee1ab869a46805bff63550b56ca7.tar.gz android_bootable_recovery-a1f4a1ec3319ee1ab869a46805bff63550b56ca7.tar.bz2 android_bootable_recovery-a1f4a1ec3319ee1ab869a46805bff63550b56ca7.tar.lz android_bootable_recovery-a1f4a1ec3319ee1ab869a46805bff63550b56ca7.tar.xz android_bootable_recovery-a1f4a1ec3319ee1ab869a46805bff63550b56ca7.tar.zst android_bootable_recovery-a1f4a1ec3319ee1ab869a46805bff63550b56ca7.zip |
Diffstat (limited to 'uncrypt/uncrypt.cpp')
-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 43a2c2ab4..a1de6a182 100644 --- a/uncrypt/uncrypt.cpp +++ b/uncrypt/uncrypt.cpp @@ -200,8 +200,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; |