summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-08-27 12:47:32 -0700
committerKenny Root <kroot@google.com>2010-08-27 12:47:34 -0700
commite0573a4ad66333ae36ea295b47da5101726fb6f5 (patch)
treecc02f391d681407d3914620d42c8bd823de82e27 /libs
parent26c79927435f10180d498f2928a954ee48e4ba49 (diff)
downloadframeworks_native-e0573a4ad66333ae36ea295b47da5101726fb6f5.zip
frameworks_native-e0573a4ad66333ae36ea295b47da5101726fb6f5.tar.gz
frameworks_native-e0573a4ad66333ae36ea295b47da5101726fb6f5.tar.bz2
Add debugging to ZipFileRO
Some assets are failing to read from ZIP files. This adds a bit more debugging to figure out what's going on. Change-Id: Id90e10546c54c85069a34478fbc28bc2523bda5d
Diffstat (limited to 'libs')
-rw-r--r--libs/utils/ZipFileRO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/utils/ZipFileRO.cpp b/libs/utils/ZipFileRO.cpp
index 604f558..a0e01c6 100644
--- a/libs/utils/ZipFileRO.cpp
+++ b/libs/utils/ZipFileRO.cpp
@@ -508,8 +508,8 @@ bool ZipFileRO::getEntryInfo(ZipEntryRO entry, int* pMethod, size_t* pUncompLen,
}
if (get4LE(lfhBuf) != kLFHSignature) {
- LOGW("didn't find signature at start of lfh, offset=%ld\n",
- localHdrOffset);
+ LOGW("didn't find signature at start of lfh, offset=%ld (got 0x%08lx, expected 0x%08x)\n",
+ localHdrOffset, get4LE(lfhBuf), kLFHSignature);
return false;
}