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

Commit 48724c0c authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "silence sensorservice when it's dropping events"

parents 22a72964 f9a4b136
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -586,12 +586,12 @@ status_t SensorService::SensorEventConnection::sendEvents(
    if (size == -EAGAIN) {
        // the destination doesn't accept events anymore, it's probably
        // full. For now, we just drop the events on the floor.
        LOGW("dropping %d events on the floor", count);
        //LOGW("dropping %d events on the floor", count);
        return size;
    }

    LOGE_IF(size<0, "dropping %d events on the floor (%s)",
            count, strerror(-size));
    //LOGE_IF(size<0, "dropping %d events on the floor (%s)",
    //        count, strerror(-size));

    return size < 0 ? status_t(size) : status_t(NO_ERROR);
}