summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ruben Brunk <rubenbrunk@google.com> 2013-09-09 17:56:07 -0700
committer Ruben Brunk <rubenbrunk@google.com> 2013-09-10 17:26:49 -0700
commit3e47a748eb646b8d2fc8e8c4f11b270d9ae2c607 (patch)
treefe03f35aa83f71059294944796ebf6c077ab1eae
parent3b99337ec2a92ca5fc0b3bd1d44be40e5eb2a30f (diff)
Remove dependency on JNIHelp header side effects.
Bug: 10680559 Change-Id: I2f8ab34803a4554dac35c941ed58c0c845754655
-rw-r--r--runtime/debugger.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc
index e01857f994..88269e5578 100644
--- a/runtime/debugger.cc
+++ b/runtime/debugger.cc
@@ -3459,11 +3459,13 @@ static size_t GetAllocTrackerMax() {
char* end;
size_t value = strtoul(allocRecordMaxString, &end, 10);
if (*end != '\0') {
- ALOGE("Ignoring %s '%s' --- invalid", propertyName, allocRecordMaxString);
+ LOG(ERROR) << "Ignoring " << propertyName << " '" << allocRecordMaxString
+ << "' --- invalid";
return kDefaultNumAllocRecords;
}
if (!IsPowerOfTwo(value)) {
- ALOGE("Ignoring %s '%s' --- not power of two", propertyName, allocRecordMaxString);
+ LOG(ERROR) << "Ignoring " << propertyName << " '" << allocRecordMaxString
+ << "' --- not power of two";
return kDefaultNumAllocRecords;
}
return value;