diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-18 20:14:09 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-02-18 20:14:10 +0000 |
commit | 0220fd3ec49d01437af019dc390b7b501bdd770d (patch) | |
tree | 47aa440e3d1caca5e8df87a70ad6aaa4d4ad9f92 /media | |
parent | 9384ef7be4c2c271faaeb4e2b77099d51739e957 (diff) | |
parent | c02c96161dde9d6ca7b408cf08fcf10bd8e61a54 (diff) | |
download | frameworks_av-0220fd3ec49d01437af019dc390b7b501bdd770d.zip frameworks_av-0220fd3ec49d01437af019dc390b7b501bdd770d.tar.gz frameworks_av-0220fd3ec49d01437af019dc390b7b501bdd770d.tar.bz2 |
Merge "Fix bug with not reporting lost bytes"
Diffstat (limited to 'media')
-rw-r--r-- | media/libnbaio/NBLog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libnbaio/NBLog.cpp b/media/libnbaio/NBLog.cpp index 895fd60..96738a7 100644 --- a/media/libnbaio/NBLog.cpp +++ b/media/libnbaio/NBLog.cpp @@ -341,8 +341,8 @@ void NBLog::Reader::dump(int fd, size_t indent) mFd = fd; mIndent = indent; String8 timestamp, body; - if (i > 0) { - lost += i; + lost += i; + if (lost > 0) { body.appendFormat("warning: lost %u bytes worth of events", lost); // TODO timestamp empty here, only other choice to wait for the first timestamp event in the // log to push it out. Consider keeping the timestamp/body between calls to readAt(). |