Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)