Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c68fedce authored by Dan Albert's avatar Dan Albert
Browse files

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
(cherry picked from commit 4047075d)
parent 342a2264
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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

+5 −2
Original line number Diff line number Diff line
@@ -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