Skip to content
Snippets Groups Projects
Commit 6684ec8d authored by Chenjie Luo's avatar Chenjie Luo Committed by Gerrit Code Review
Browse files

Merge "Define _LOG as a weak symbol."

parents 5e148a58 97258aad
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ bool is_allowed_in_logcat(enum logtype ltype) { ...@@ -41,6 +41,7 @@ bool is_allowed_in_logcat(enum logtype ltype) {
return false; return false;
} }
__attribute__((__weak__, visibility("default")))
void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) { void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) {
bool write_to_tombstone = (log->tfd != -1); bool write_to_tombstone = (log->tfd != -1);
bool write_to_logcat = is_allowed_in_logcat(ltype) bool write_to_logcat = is_allowed_in_logcat(ltype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment