summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenjie Luo2017-03-06 20:08:35 -0600
committerGerrit Code Review2017-03-06 20:08:36 -0600
commit6684ec8d97bcb65579c7f2f214b1a1d7639e4698 (patch)
treee86949655bcf8c63f17e3066e6fd8dee74aa9ce3
parent5e148a58b8cf98d2443f8d7fb04a0b615c8aa4eb (diff)
parent97258aad8a41e375696a06793e5de3e9d75f6f1b (diff)
downloadplatform-system-core-android-o-preview-1.tar.gz
platform-system-core-android-o-preview-1.tar.xz
platform-system-core-android-o-preview-1.zip
Merge "Define _LOG as a weak symbol."android-o-preview-1
-rw-r--r--debuggerd/libdebuggerd/utility.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/debuggerd/libdebuggerd/utility.cpp b/debuggerd/libdebuggerd/utility.cpp
index 57209aaef..744cd72af 100644
--- a/debuggerd/libdebuggerd/utility.cpp
+++ b/debuggerd/libdebuggerd/utility.cpp
@@ -41,6 +41,7 @@ bool is_allowed_in_logcat(enum logtype ltype) {
41 return false; 41 return false;
42} 42}
43 43
44__attribute__((__weak__, visibility("default")))
44void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) { 45void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) {
45 bool write_to_tombstone = (log->tfd != -1); 46 bool write_to_tombstone = (log->tfd != -1);
46 bool write_to_logcat = is_allowed_in_logcat(ltype) 47 bool write_to_logcat = is_allowed_in_logcat(ltype)