Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0220fd3e authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Fix bug with not reporting lost bytes"

parents 9384ef7b c02c9616
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
    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().