summaryrefslogtreecommitdiffstats
path: root/vm/hprof
diff options
context:
space:
mode:
Diffstat (limited to 'vm/hprof')
-rw-r--r--vm/hprof/Hprof.cpp12
-rw-r--r--vm/hprof/HprofOutput.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/vm/hprof/Hprof.cpp b/vm/hprof/Hprof.cpp
index 18439b31c..ff8e87287 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.\n");
+ LOGE("hprof: can't allocate context.");
return NULL;
}
@@ -69,14 +69,14 @@ 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.\n");
+ LOGE("hprof: can't allocate context.");
hprofFreeContext(tailCtx);
return false;
}
hprofContextInit(headCtx, strdup(tailCtx->fileName), tailCtx->fd, true,
tailCtx->directToDdms);
- LOGI("hprof: dumping heap strings to \"%s\".\n", tailCtx->fileName);
+ LOGI("hprof: dumping heap strings to \"%s\".", tailCtx->fileName);
hprofDumpStrings(headCtx);
hprofDumpClasses(headCtx);
@@ -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\n", headCtx->fd, strerror(errno));
+ LOGE("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\n", headCtx->fileName, strerror(errno));
+ LOGE("can't open %s: %s", headCtx->fileName, strerror(errno));
/* continue to fail-handler below */
}
}
@@ -145,7 +145,7 @@ bool hprofShutdown(hprof_context_t *tailCtx)
}
/* throw out a log message for the benefit of "runhat" */
- LOGI("hprof: heap dump completed (%dKB)\n",
+ LOGI("hprof: heap dump completed (%dKB)",
(headCtx->fileDataSize + tailCtx->fileDataSize + 1023) / 1024);
hprofFreeContext(headCtx);
diff --git a/vm/hprof/HprofOutput.cpp b/vm/hprof/HprofOutput.cpp
index 0644a887f..63934381e 100644
--- a/vm/hprof/HprofOutput.cpp
+++ b/vm/hprof/HprofOutput.cpp
@@ -74,7 +74,7 @@ void hprofContextInit(hprof_context_t *ctx, char *fileName, int fd,
FILE* fp = open_memstream(&ctx->fileDataPtr, &ctx->fileDataSize);
if (fp == NULL) {
/* not expected */
- LOGE("hprof: open_memstream failed: %s\n", strerror(errno));
+ LOGE("hprof: open_memstream failed: %s", strerror(errno));
dvmAbort();
}