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:
parent
7fb0ee0c4d
commit
4047075da6
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue