Merge "Define _LOG as a weak symbol."

am: 6684ec8d97

Change-Id: Ibb3804ff53490abd2743ce8ba33c6833ac2a71ab
This commit is contained in:
Chenjie Luo 2017-03-07 02:52:53 +00:00 committed by android-build-merger
commit 00c9fcdca9
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ bool is_allowed_in_logcat(enum logtype ltype) {
return false;
}
__attribute__((__weak__, visibility("default")))
void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) {
bool write_to_tombstone = (log->tfd != -1);
bool write_to_logcat = is_allowed_in_logcat(ltype)