Allow liblog to pass failure reasons to debuggerd.

assert(3) already does this, but LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF
have been missing out.

Change-Id: I1d6214c4f792fa0d4ba3c14eded3fc9c332bd3c5
This commit is contained in:
Elliott Hughes
2014-04-23 14:52:49 -07:00
parent 3b0433f34f
commit 2e3b7108b5
2 changed files with 15 additions and 6 deletions

View File

@@ -74,8 +74,8 @@ __LIBC_HIDDEN__ void __libc_set_abort_message(const char* msg);
// Formats a message to the log (priority 'fatal'), then aborts.
//
__LIBC_HIDDEN__ __noreturn void __libc_fatal(const char* format, ...)
__printflike(1, 2);
__LIBC_HIDDEN__ __noreturn void __libc_fatal(const char* format, ...) __printflike(1, 2);
__noreturn void __android_fatal(const char* tag, const char* format, ...) __printflike(2, 3);
//
// Formats a message to the log (priority 'fatal'), but doesn't abort.