Remove dependency on JNIHelp header side effects.
Bug: 10680559
Change-Id: I2f8ab34803a4554dac35c941ed58c0c845754655
diff --git a/runtime/debugger.cc b/runtime/debugger.cc
index e01857f..88269e5 100644
--- a/runtime/debugger.cc
+++ b/runtime/debugger.cc
@@ -3459,11 +3459,13 @@
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;