OSDN Git Service

Add debugging to ZipFileRO
authorKenny Root <kroot@google.com>
Fri, 27 Aug 2010 19:47:32 +0000 (12:47 -0700)
committerKenny Root <kroot@google.com>
Fri, 27 Aug 2010 19:47:34 +0000 (12:47 -0700)
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

libs/utils/ZipFileRO.cpp

index 604f558..a0e01c6 100644 (file)
@@ -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;
         }