Merge "Update for public android_set_abort_message()." into lmp-dev

This commit is contained in:
Dan Albert 2014-08-19 20:12:25 +00:00 committed by Android (Google) Code Review
commit 3e3fbc4d73
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