diff options
author | Brigid Smith <brigidsmith@google.com> | 2014-07-17 14:52:33 -0700 |
---|---|---|
committer | Brigid Smith <brigidsmith@google.com> | 2014-07-17 15:49:39 -0700 |
commit | c75a02fe3f9abec006a1e88794f2fa12fbeafd8f (patch) | |
tree | f465de109947a4a945b2383d5196eb0201925301 /debuggerd/utility.cpp | |
parent | 5328f671b5601b948b6d0b457119fd9eb3478d35 (diff) | |
download | system_core-c75a02fe3f9abec006a1e88794f2fa12fbeafd8f.tar.gz system_core-c75a02fe3f9abec006a1e88794f2fa12fbeafd8f.tar.bz2 system_core-c75a02fe3f9abec006a1e88794f2fa12fbeafd8f.zip |
Added default constructor for log_t.
Bug: 16357258
Change-Id: I39169b35653d2b717fadbcff75978db01cc375ef
Diffstat (limited to 'debuggerd/utility.cpp')
-rw-r--r-- | debuggerd/utility.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debuggerd/utility.cpp b/debuggerd/utility.cpp index a1633448a..9a30fe3de 100644 --- a/debuggerd/utility.cpp +++ b/debuggerd/utility.cpp @@ -59,6 +59,8 @@ bool is_allowed_in_logcat(enum logtype ltype) { void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) { bool write_to_tombstone = (log->tfd != -1); bool write_to_logcat = is_allowed_in_logcat(ltype) + && log->crashed_tid != -1 + && log->current_tid != -1 && (log->crashed_tid == log->current_tid); bool write_to_activitymanager = (log->amfd != -1); |