Send bionic's fatal logging to the crash log.

Bug: 14159417
Change-Id: I7aa986fb8e11660035221f9bb4fe0bc40ac36c58
This commit is contained in:
Elliott Hughes 2014-05-07 16:35:59 -07:00
parent f837cbdc27
commit 011101905d

View File

@ -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();