summaryrefslogtreecommitdiffstats
path: root/applypatch/include
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-11-16 01:26:41 +0100
committerTianjie Xu <xunchang@google.com>2017-11-16 07:35:39 +0100
commit6e293c99c1c8818fd28edc8dcfc13b5e4f048188 (patch)
treedb5958189f9b9605e8e9a174c716f404a9aa1017 /applypatch/include
parentMerge "recovery: format f2fs with encrypt/quota" (diff)
downloadandroid_bootable_recovery-6e293c99c1c8818fd28edc8dcfc13b5e4f048188.tar
android_bootable_recovery-6e293c99c1c8818fd28edc8dcfc13b5e4f048188.tar.gz
android_bootable_recovery-6e293c99c1c8818fd28edc8dcfc13b5e4f048188.tar.bz2
android_bootable_recovery-6e293c99c1c8818fd28edc8dcfc13b5e4f048188.tar.lz
android_bootable_recovery-6e293c99c1c8818fd28edc8dcfc13b5e4f048188.tar.xz
android_bootable_recovery-6e293c99c1c8818fd28edc8dcfc13b5e4f048188.tar.zst
android_bootable_recovery-6e293c99c1c8818fd28edc8dcfc13b5e4f048188.zip
Diffstat (limited to 'applypatch/include')
-rw-r--r--applypatch/include/applypatch/imgdiff_image.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/applypatch/include/applypatch/imgdiff_image.h b/applypatch/include/applypatch/imgdiff_image.h
index 00a84f3a9..0f74420f0 100644
--- a/applypatch/include/applypatch/imgdiff_image.h
+++ b/applypatch/include/applypatch/imgdiff_image.h
@@ -62,10 +62,7 @@ class ImageChunk {
const uint8_t* DataForPatch() const;
size_t DataLengthForPatch() const;
- void Dump() const {
- printf("type: %d, start: %zu, len: %zu, name: %s\n", type_, start_, DataLengthForPatch(),
- entry_name_.c_str());
- }
+ void Dump(size_t index) const;
void SetUncompressedData(std::vector<uint8_t> data);
bool SetBonusData(const std::vector<uint8_t>& bonus_data);
@@ -140,7 +137,7 @@ class PatchChunk {
private:
size_t GetHeaderSize() const;
- size_t WriteHeaderToFd(int fd, size_t offset) const;
+ size_t WriteHeaderToFd(int fd, size_t offset, size_t index) const;
// The patch chunk type is the same as the target chunk type. The only exception is we change
// the |type_| to CHUNK_RAW if target length is smaller than the patch size.