summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-17 23:33:50 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-17 23:33:50 +0000
commit297c19d75f81558d326aad16d6b49004214cf61a (patch)
tree80370d692aaf3ba7c6fcf55f94f83986433e0d88 /debuggerd
parent0b8710ff8e9703fc964f5f1e0586905296e2f624 (diff)
parentf7770d59dfdc5b3b6fe94f167636b75c1c5d4a81 (diff)
downloadsystem_core-297c19d75f81558d326aad16d6b49004214cf61a.zip
system_core-297c19d75f81558d326aad16d6b49004214cf61a.tar.gz
system_core-297c19d75f81558d326aad16d6b49004214cf61a.tar.bz2
am f7770d59: am 19697f3e: am 3ad0af6d: Merge "logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH"
* commit 'f7770d59dfdc5b3b6fe94f167636b75c1c5d4a81': logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
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) {