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

Commit c02c9616 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Fix bug with not reporting lost bytes

Change-Id: I431d989dbd115b43822e9e48fd4c2b8e6322cfe3
parent 4e01ef6b
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().