summaryrefslogtreecommitdiffstats
path: root/applypatch/imgpatch.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-04-24 02:51:45 +0200
committerTianjie Xu <xunchang@google.com>2018-04-24 18:56:55 +0200
commitffed57a7a3e5e82969b5998f759d09fbb6edd4e2 (patch)
tree41aea266bc76d17c4eadaa6b789410c0d66a2e2d /applypatch/imgpatch.cpp
parentMerge "update_verifier: Move to Soong." (diff)
downloadandroid_bootable_recovery-ffed57a7a3e5e82969b5998f759d09fbb6edd4e2.tar
android_bootable_recovery-ffed57a7a3e5e82969b5998f759d09fbb6edd4e2.tar.gz
android_bootable_recovery-ffed57a7a3e5e82969b5998f759d09fbb6edd4e2.tar.bz2
android_bootable_recovery-ffed57a7a3e5e82969b5998f759d09fbb6edd4e2.tar.lz
android_bootable_recovery-ffed57a7a3e5e82969b5998f759d09fbb6edd4e2.tar.xz
android_bootable_recovery-ffed57a7a3e5e82969b5998f759d09fbb6edd4e2.tar.zst
android_bootable_recovery-ffed57a7a3e5e82969b5998f759d09fbb6edd4e2.zip
Diffstat (limited to '')
-rw-r--r--applypatch/imgpatch.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/applypatch/imgpatch.cpp b/applypatch/imgpatch.cpp
index 2e4faaadf..9794a4878 100644
--- a/applypatch/imgpatch.cpp
+++ b/applypatch/imgpatch.cpp
@@ -182,6 +182,8 @@ int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value&
printf("Failed to apply bsdiff patch.\n");
return -1;
}
+
+ LOG(DEBUG) << "Processed chunk type normal";
} else if (type == CHUNK_RAW) {
const char* raw_header = patch_header + pos;
pos += 4;
@@ -201,6 +203,8 @@ int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value&
return -1;
}
pos += data_len;
+
+ LOG(DEBUG) << "Processed chunk type raw";
} else if (type == CHUNK_DEFLATE) {
// deflate chunks have an additional 60 bytes in their chunk header.
const char* deflate_header = patch_header + pos;
@@ -276,6 +280,7 @@ int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value&
return -1;
}
+ LOG(DEBUG) << "Processed chunk type deflate";
} else {
printf("patch chunk %d is unknown type %d\n", i, type);
return -1;