summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-07 14:58:08 -0700
committerMark Salyzyn <salyzyn@google.com>2014-04-16 15:38:50 -0700
commit99f47a9e7c4374f2bbfc18e4a97aa7848245ea33 (patch)
treed277c0e181a563c60703ffe8b7121c04e9ed57d2 /debuggerd
parent26bb9970c463eb1209803d833799f128484864ac (diff)
downloadsystem_core-99f47a9e7c4374f2bbfc18e4a97aa7848245ea33.zip
system_core-99f47a9e7c4374f2bbfc18e4a97aa7848245ea33.tar.gz
system_core-99f47a9e7c4374f2bbfc18e4a97aa7848245ea33.tar.bz2
logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/utility.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/debuggerd/utility.cpp b/debuggerd/utility.cpp
index 9b20914..d4c252f 100644
--- a/debuggerd/utility.cpp
+++ b/debuggerd/utility.cpp
@@ -24,6 +24,7 @@
#include <sys/wait.h>
#include <backtrace/Backtrace.h>
+#include <log/log.h>
#include <log/logd.h>
const int sleep_time_usec = 50000; // 0.05 seconds
@@ -64,7 +65,7 @@ void _LOG(log_t* log, int scopeFlags, const char* fmt, ...) {
}
if (want_log_write) {
- __android_log_write(ANDROID_LOG_INFO, "DEBUG", buf);
+ __android_log_buf_write(LOG_ID_CRASH, ANDROID_LOG_INFO, "DEBUG", buf);
if (want_amfd_write) {
int written = write_to_am(log->amfd, buf, len);
if (written <= 0) {