commit | 1ee18d0eb047edda23987c28bc78b8f7e4c2db0a | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed May 07 23:40:27 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed May 07 23:40:28 2014 +0000 |
tree | dad15d40696aa5df46c613cf7011fce33930be98 | |
parent | 3b968032848426c12185fe1c0f20e5bc882ed388 [diff] | |
parent | 011101905d91b770893e8a2fb6c09552d1c63652 [diff] |
Merge "Send bionic's fatal logging to the crash log."
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 @@ } 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();