summaryrefslogtreecommitdiffstats
path: root/minzip/Zip.c
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-07-15 23:13:06 +0200
committerTao Bao <tbao@google.com>2015-07-16 22:43:46 +0200
commitd7d0f7503456c3d275a49f90be35e03f02c51bbd (patch)
tree9f4fb63bfba260f01ad92dc7d5e1aa793498e4a7 /minzip/Zip.c
parentam 48248273: am 307eecfd: am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp." (diff)
downloadandroid_bootable_recovery-d7d0f7503456c3d275a49f90be35e03f02c51bbd.tar
android_bootable_recovery-d7d0f7503456c3d275a49f90be35e03f02c51bbd.tar.gz
android_bootable_recovery-d7d0f7503456c3d275a49f90be35e03f02c51bbd.tar.bz2
android_bootable_recovery-d7d0f7503456c3d275a49f90be35e03f02c51bbd.tar.lz
android_bootable_recovery-d7d0f7503456c3d275a49f90be35e03f02c51bbd.tar.xz
android_bootable_recovery-d7d0f7503456c3d275a49f90be35e03f02c51bbd.tar.zst
android_bootable_recovery-d7d0f7503456c3d275a49f90be35e03f02c51bbd.zip
Diffstat (limited to 'minzip/Zip.c')
-rw-r--r--minzip/Zip.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/minzip/Zip.c b/minzip/Zip.c
index c1dec742d..bdb565c64 100644
--- a/minzip/Zip.c
+++ b/minzip/Zip.c
@@ -198,10 +198,10 @@ static bool parseZipArchive(ZipArchive* pArchive)
*/
val = get4LE(pArchive->addr);
if (val == ENDSIG) {
- LOGI("Found Zip archive, but it looks empty\n");
+ LOGW("Found Zip archive, but it looks empty\n");
goto bail;
} else if (val != LOCSIG) {
- LOGV("Not a Zip archive (found 0x%08x)\n", val);
+ LOGW("Not a Zip archive (found 0x%08x)\n", val);
goto bail;
}
@@ -217,7 +217,7 @@ static bool parseZipArchive(ZipArchive* pArchive)
ptr--;
}
if (ptr < (const unsigned char*) pArchive->addr) {
- LOGI("Could not find end-of-central-directory in Zip\n");
+ LOGW("Could not find end-of-central-directory in Zip\n");
goto bail;
}
@@ -429,7 +429,7 @@ int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive)
if (length < ENDHDR) {
err = -1;
- LOGV("File '%s' too small to be zip (%zd)\n", fileName, map.length);
+ LOGW("Archive %p is too small to be zip (%zd)\n", pArchive, length);
goto bail;
}
@@ -438,7 +438,7 @@ int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive)
if (!parseZipArchive(pArchive)) {
err = -1;
- LOGV("Parsing '%s' failed\n", fileName);
+ LOGW("Parsing archive %p failed\n", pArchive);
goto bail;
}
@@ -548,7 +548,7 @@ static bool processDeflatedEntry(const ZipArchive *pArchive,
/* uncompress the data */
zerr = inflate(&zstream, Z_NO_FLUSH);
if (zerr != Z_OK && zerr != Z_STREAM_END) {
- LOGD("zlib inflate call failed (zerr=%d)\n", zerr);
+ LOGW("zlib inflate call failed (zerr=%d)\n", zerr);
goto z_bail;
}
@@ -1007,7 +1007,7 @@ bool mzExtractRecursive(const ZipArchive *pArchive,
if (callback != NULL) callback(targetFile, cookie);
}
- LOGD("Extracted %d file(s)\n", extractCount);
+ LOGV("Extracted %d file(s)\n", extractCount);
free(helper.buf);
free(zpath);