summaryrefslogtreecommitdiffstats
path: root/vm/hprof/Hprof.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/hprof/Hprof.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/hprof/Hprof.cpp')
-rw-r--r--vm/hprof/Hprof.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm/hprof/Hprof.cpp b/vm/hprof/Hprof.cpp
index c0a6c7fcd..5a772a090 100644
--- a/vm/hprof/Hprof.cpp
+++ b/vm/hprof/Hprof.cpp
@@ -43,7 +43,7 @@ hprof_context_t* hprofStartup(const char *outputFileName, int fd,
hprof_context_t *ctx = (hprof_context_t *)malloc(sizeof(*ctx));
if (ctx == NULL) {
- LOGE("hprof: can't allocate context.");
+ ALOGE("hprof: can't allocate context.");
return NULL;
}
@@ -69,7 +69,7 @@ bool hprofShutdown(hprof_context_t *tailCtx)
*/
hprof_context_t *headCtx = (hprof_context_t *)malloc(sizeof(*headCtx));
if (headCtx == NULL) {
- LOGE("hprof: can't allocate context.");
+ ALOGE("hprof: can't allocate context.");
hprofFreeContext(tailCtx);
return false;
}
@@ -115,13 +115,13 @@ bool hprofShutdown(hprof_context_t *tailCtx)
if (headCtx->fd >= 0) {
outFd = dup(headCtx->fd);
if (outFd < 0) {
- LOGE("dup(%d) failed: %s", headCtx->fd, strerror(errno));
+ ALOGE("dup(%d) failed: %s", headCtx->fd, strerror(errno));
/* continue to fail-handler below */
}
} else {
outFd = open(tailCtx->fileName, O_WRONLY|O_CREAT|O_TRUNC, 0644);
if (outFd < 0) {
- LOGE("can't open %s: %s", headCtx->fileName, strerror(errno));
+ ALOGE("can't open %s: %s", headCtx->fileName, strerror(errno));
/* continue to fail-handler below */
}
}