summaryrefslogtreecommitdiffstats
path: root/include/android
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-04-23 14:57:32 -0700
committerElliott Hughes <enh@google.com>2014-04-24 13:28:24 -0700
commitda6b2e2fd79c9aac12127b2c2f512e9555fdd06d (patch)
treee90e6904a0afcb745a1b58fdcbf2d36541176039 /include/android
parent07fa043341ad057ea79ca973089609965ba6c4f9 (diff)
downloadsystem_core-da6b2e2fd79c9aac12127b2c2f512e9555fdd06d.zip
system_core-da6b2e2fd79c9aac12127b2c2f512e9555fdd06d.tar.gz
system_core-da6b2e2fd79c9aac12127b2c2f512e9555fdd06d.tar.bz2
Improve liblog's fatal logging.
This makes LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF as good as regular assert(3). Change-Id: I0666684d30cae7baf23c64b33d35c1e43f81acf0
Diffstat (limited to 'include/android')
-rw-r--r--include/android/log.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/android/log.h b/include/android/log.h
index 0ea4c29..f5b1900 100644
--- a/include/android/log.h
+++ b/include/android/log.h
@@ -110,11 +110,11 @@ int __android_log_vprint(int prio, const char *tag,
const char *fmt, va_list ap);
/*
- * Log an assertion failure and SIGTRAP the process to have a chance
- * to inspect it, if a debugger is attached. This uses the FATAL priority.
+ * Log an assertion failure and abort the process to have a chance
+ * to inspect it if a debugger is attached. This uses the FATAL priority.
*/
void __android_log_assert(const char *cond, const char *tag,
- const char *fmt, ...)
+ const char *fmt, ...)
#if defined(__GNUC__)
__attribute__ ((noreturn))
__attribute__ ((format(printf, 3, 4)))