summaryrefslogtreecommitdiff
path: root/runtime/base/logging.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/base/logging.cc')
-rw-r--r--runtime/base/logging.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/base/logging.cc b/runtime/base/logging.cc
index 55b4306427..adfd7d323c 100644
--- a/runtime/base/logging.cc
+++ b/runtime/base/logging.cc
@@ -21,7 +21,7 @@
#include <sstream>
#include "base/mutex.h"
-#include "thread-inl.h"
+#include "thread-current-inl.h"
#include "utils.h"
// Headers for LogMessage::LogLine.
@@ -112,7 +112,7 @@ void LogHelper::LogLineLowStack(const char* file,
if (priority == ANDROID_LOG_FATAL) {
// Allocate buffer for snprintf(buf, buf_size, "%s:%u] %s", file, line, message) below.
// If allocation fails, fall back to printing only the message.
- buf_size = strlen(file) + 1 /* ':' */ + std::numeric_limits<typeof(line)>::max_digits10 +
+ buf_size = strlen(file) + 1 /* ':' */ + std::numeric_limits<decltype(line)>::max_digits10 +
2 /* "] " */ + strlen(message) + 1 /* terminating 0 */;
buf = reinterpret_cast<char*>(malloc(buf_size));
}