summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-08-19 17:43:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-19 17:43:21 +0000
commita79ad128b24b6db6968d01fddfec41dd759dcf1d (patch)
treec0ff43b224fcb3b81be950778050d161e493000e
parent4e06369e1c67763116c619e763fe8c46dc540325 (diff)
parent8c9cbb214c161eac0c723f4f887965006bd9f108 (diff)
downloadsystem_core-a79ad128b24b6db6968d01fddfec41dd759dcf1d.zip
system_core-a79ad128b24b6db6968d01fddfec41dd759dcf1d.tar.gz
system_core-a79ad128b24b6db6968d01fddfec41dd759dcf1d.tar.bz2
am 8c9cbb21: am 5c16eb07: am afc9bc01: Merge "Update for public android_set_abort_message()."
* commit '8c9cbb214c161eac0c723f4f887965006bd9f108': Update for public android_set_abort_message().
-rw-r--r--liblog/logd_write.c7
-rw-r--r--liblog/logd_write_kern.c7
2 files changed, 10 insertions, 4 deletions
diff --git a/liblog/logd_write.c b/liblog/logd_write.c
index 3171c78..3659676 100644
--- a/liblog/logd_write.c
+++ b/liblog/logd_write.c
@@ -31,6 +31,10 @@
#include <time.h>
#include <unistd.h>
+#ifdef __BIONIC__
+#include <android/set_abort_message.h>
+#endif
+
#include <log/logd.h>
#include <log/logger.h>
#include <log/log_read.h>
@@ -333,8 +337,7 @@ int __android_log_write(int prio, const char *tag, const char *msg)
#if __BIONIC__
if (prio == ANDROID_LOG_FATAL) {
- extern void __android_set_abort_message(const char*);
- __android_set_abort_message(msg);
+ android_set_abort_message(msg);
}
#endif
diff --git a/liblog/logd_write_kern.c b/liblog/logd_write_kern.c
index 1ed5ecf..ae621cb 100644
--- a/liblog/logd_write_kern.c
+++ b/liblog/logd_write_kern.c
@@ -28,6 +28,10 @@
#include <time.h>
#include <unistd.h>
+#ifdef __BIONIC__
+#include <android/set_abort_message.h>
+#endif
+
#include <log/log.h>
#include <log/logd.h>
#include <log/logger.h>
@@ -177,8 +181,7 @@ int __android_log_write(int prio, const char *tag, const char *msg)
#if __BIONIC__
if (prio == ANDROID_LOG_FATAL) {
- extern void __android_set_abort_message(const char*);
- __android_set_abort_message(msg);
+ android_set_abort_message(msg);
}
#endif