Update for public android_set_abort_message().

Since android_set_abort_message() is quite helpful to the platform, it's
becoming promoted to a real header with a non-private name.

Bug: 17059126
Change-Id: I3ed12b66eb07f3a6a08366d5eee147809d9a3ce9
This commit is contained in:
Dan Albert 2014-08-18 17:29:34 -07:00
parent 7fb0ee0c4d
commit 4047075da6
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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