OSDN Git Service

Fix DEX zip open error message printing
authorDavid Sehr <sehr@google.com>
Tue, 14 Feb 2017 18:57:47 +0000 (10:57 -0800)
committerDavid Sehr <sehr@google.com>
Tue, 14 Feb 2017 18:57:47 +0000 (10:57 -0800)
We were printing the pointer to the error message string rather than the
string itself.

Bug: none
Test: test-art-host
Change-Id: I06bd9afd100c425039847c52df1f4912966053b8

runtime/dex_file.cc

index f59420d..d93cbbb 100644 (file)
@@ -415,7 +415,7 @@ bool DexFile::OpenAllDexFilesFromZip(const ZipArchive& zip_archive,
                                                                          &error_code));
       if (next_dex_file.get() == nullptr) {
         if (error_code != ZipOpenErrorCode::kEntryNotFound) {
-          LOG(WARNING) << error_msg;
+          LOG(WARNING) << "Zip open failed: " << *error_msg;
         }
         break;
       } else {