summaryrefslogtreecommitdiffstats
path: root/minzip/Zip.c
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-07-17 07:13:43 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-07-17 07:13:44 +0200
commit025c0e79c3e05babd4df0bab8249466b489c0870 (patch)
treeb2dde21842436572842965560f384ec14a1b41b5 /minzip/Zip.c
parentMerge "recovery: Switch applypatch/ and updater/ to cpp." (diff)
parentClean up LOG functions. (diff)
downloadandroid_bootable_recovery-025c0e79c3e05babd4df0bab8249466b489c0870.tar
android_bootable_recovery-025c0e79c3e05babd4df0bab8249466b489c0870.tar.gz
android_bootable_recovery-025c0e79c3e05babd4df0bab8249466b489c0870.tar.bz2
android_bootable_recovery-025c0e79c3e05babd4df0bab8249466b489c0870.tar.lz
android_bootable_recovery-025c0e79c3e05babd4df0bab8249466b489c0870.tar.xz
android_bootable_recovery-025c0e79c3e05babd4df0bab8249466b489c0870.tar.zst
android_bootable_recovery-025c0e79c3e05babd4df0bab8249466b489c0870.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);