Define _LOG as a weak symbol.
So _LOG could be overridden by customized logging implementations in non-Android systems. Bug: 35919515 Test: Test on device Change-Id: I0885c15353c0b1bf66f6f156e7f502f326b85d57
This commit is contained in:
parent
56e89ade33
commit
97258aad8a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue