summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2023-02-07 01:26:17 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-02-07 01:26:17 +0100
commitc7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42 (patch)
treeb350b04f415a9d66ac9b6cbab0240f464d417bc3
parentMerge "Update health AIDL HAL to V2" am: e3ebedd279 am: df7a91962e (diff)
parentMerge "Reduce logs in update_verifier" am: f891951d07 (diff)
downloadandroid_bootable_recovery-c7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42.tar
android_bootable_recovery-c7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42.tar.gz
android_bootable_recovery-c7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42.tar.bz2
android_bootable_recovery-c7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42.tar.lz
android_bootable_recovery-c7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42.tar.xz
android_bootable_recovery-c7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42.tar.zst
android_bootable_recovery-c7eb36f1b71db32bfbbc635d0a9c5d5dd3ccaf42.zip
-rw-r--r--update_verifier/update_verifier.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/update_verifier/update_verifier.cpp b/update_verifier/update_verifier.cpp
index ea47a65ca..a0160e2fc 100644
--- a/update_verifier/update_verifier.cpp
+++ b/update_verifier/update_verifier.cpp
@@ -150,7 +150,6 @@ bool UpdateVerifier::ReadBlocks(const std::string partition_name,
static constexpr size_t kBlockSize = 4096;
std::vector<uint8_t> buf(1024 * kBlockSize);
- size_t block_count = 0;
for (const auto& [range_start, range_end] : group) {
if (lseek64(fd.get(), static_cast<off64_t>(range_start) * kBlockSize, SEEK_SET) == -1) {
PLOG(ERROR) << "lseek to " << range_start << " failed";
@@ -166,9 +165,7 @@ bool UpdateVerifier::ReadBlocks(const std::string partition_name,
}
remain -= to_read;
}
- block_count += (range_end - range_start);
}
- LOG(INFO) << "Finished reading " << block_count << " blocks on " << dm_block_device;
return true;
};
@@ -179,8 +176,8 @@ bool UpdateVerifier::ReadBlocks(const std::string partition_name,
for (auto& t : threads) {
ret = t.get() && ret;
}
- LOG(INFO) << "Finished reading blocks on " << dm_block_device << " with " << thread_num
- << " threads.";
+ LOG(INFO) << "Finished reading blocks on partition " << partition_name << " @ " << dm_block_device
+ << " with " << thread_num << " threads.";
return ret;
}