summaryrefslogtreecommitdiffstats
path: root/vm/RawDexFile.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-06 19:16:58 +0000
committerSteve Block <steveblock@google.com>2012-01-08 11:26:30 +0000
commitc1a4ab9c313d8a3d12007f2dbef7b5a6fa4ac2ef (patch)
tree76e90a6ae1910835a56e4dad3f60f42392645703 /vm/RawDexFile.cpp
parente8e1ddccd616e8226b7cc1e4e9fdb327429249e8 (diff)
downloadandroid_dalvik-c1a4ab9c313d8a3d12007f2dbef7b5a6fa4ac2ef.tar.gz
android_dalvik-c1a4ab9c313d8a3d12007f2dbef7b5a6fa4ac2ef.tar.bz2
android_dalvik-c1a4ab9c313d8a3d12007f2dbef7b5a6fa4ac2ef.zip
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/157220 Also fix an occurrence of LOGW missed in an earlier change. Bug: 5449033 Change-Id: I2e3b23839e6dcd09015d6402280e9300c75e3406
Diffstat (limited to 'vm/RawDexFile.cpp')
-rw-r--r--vm/RawDexFile.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/vm/RawDexFile.cpp b/vm/RawDexFile.cpp
index d8df65507..45987671f 100644
--- a/vm/RawDexFile.cpp
+++ b/vm/RawDexFile.cpp
@@ -33,7 +33,7 @@
static int copyFileToFile(int destFd, int srcFd, size_t size)
{
if (lseek(srcFd, 0, SEEK_SET) != 0) {
- LOGE("lseek failure: %s", strerror(errno));
+ ALOGE("lseek failure: %s", strerror(errno));
return -1;
}
@@ -49,7 +49,7 @@ static int getModTimeAndSize(int fd, u4* modTime, size_t* size)
int result = fstat(fd, &buf);
if (result < 0) {
- LOGE("Unable to determine mod time: %s", strerror(errno));
+ ALOGE("Unable to determine mod time: %s", strerror(errno));
return -1;
}
@@ -76,12 +76,12 @@ static int verifyMagicAndGetAdler32(int fd, u4 *adler32)
ssize_t amt = read(fd, headerStart, sizeof(headerStart));
if (amt < 0) {
- LOGE("Unable to read header: %s", strerror(errno));
+ ALOGE("Unable to read header: %s", strerror(errno));
return -1;
}
if (amt != sizeof(headerStart)) {
- LOGE("Unable to read full header (only got %d bytes)", (int) amt);
+ ALOGE("Unable to read full header (only got %d bytes)", (int) amt);
return -1;
}
@@ -132,12 +132,12 @@ int dvmRawDexFileOpen(const char* fileName, const char* odexOutputName,
dvmSetCloseOnExec(dexFd);
if (verifyMagicAndGetAdler32(dexFd, &adler32) < 0) {
- LOGE("Error with header for %s", fileName);
+ ALOGE("Error with header for %s", fileName);
goto bail;
}
if (getModTimeAndSize(dexFd, &modTime, &fileSize) < 0) {
- LOGE("Error with stat for %s", fileName);
+ ALOGE("Error with stat for %s", fileName);
goto bail;
}
@@ -194,7 +194,7 @@ int dvmRawDexFileOpen(const char* fileName, const char* odexOutputName,
}
if (!result) {
- LOGE("Unable to extract+optimize DEX from '%s'", fileName);
+ ALOGE("Unable to extract+optimize DEX from '%s'", fileName);
goto bail;
}
@@ -218,7 +218,7 @@ int dvmRawDexFileOpen(const char* fileName, const char* odexOutputName,
/* unlock the fd */
if (!dvmUnlockCachedDexFile(optFd)) {
/* uh oh -- this process needs to exit or we'll wedge the system */
- LOGE("Unable to unlock DEX file");
+ ALOGE("Unable to unlock DEX file");
goto bail;
}
locked = false;