silence sensorservice when it's dropping events

Change-Id: Ib05862e545aa780821aa605e45ab189f530494b7
This commit is contained in:
Mathias Agopian 2011-07-20 18:51:15 -07:00
parent 7b2b32f2e7
commit 16c3e4ae72

View File

@ -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);
}