summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-07 23:40:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-07 23:40:28 +0000
commit1ee18d0eb047edda23987c28bc78b8f7e4c2db0a (patch)
treedad15d40696aa5df46c613cf7011fce33930be98
parent3b968032848426c12185fe1c0f20e5bc882ed388 (diff)
parent011101905d91b770893e8a2fb6c09552d1c63652 (diff)
downloadbionic-1ee18d0eb047edda23987c28bc78b8f7e4c2db0a.zip
bionic-1ee18d0eb047edda23987c28bc78b8f7e4c2db0a.tar.gz
bionic-1ee18d0eb047edda23987c28bc78b8f7e4c2db0a.tar.bz2
Merge "Send bionic's fatal logging to the crash log."
-rw-r--r--libc/bionic/libc_logging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/libc_logging.cpp b/libc/bionic/libc_logging.cpp
index f15abbe..79472b3 100644
--- a/libc/bionic/libc_logging.cpp
+++ b/libc/bionic/libc_logging.cpp
@@ -495,7 +495,7 @@ static int __libc_write_log(int priority, const char* tag, const char* msg) {
}
iovec vec[6];
- char log_id = LOG_ID_MAIN;
+ char log_id = (priority == ANDROID_LOG_FATAL) ? LOG_ID_CRASH : LOG_ID_MAIN;
vec[0].iov_base = &log_id;
vec[0].iov_len = sizeof(log_id);
uint16_t tid = gettid();