Make EventFlag logging a little bit less noisy by not logging situations

in which waiting for an EventFlag times out.

Bug: 34224077
Test: make
Change-Id: I6c43e964c248f77352e6dfc6966163e88e1cfe70
diff --git a/EventFlag.cpp b/EventFlag.cpp
index 093023b..fb54ee4 100644
--- a/EventFlag.cpp
+++ b/EventFlag.cpp
@@ -154,7 +154,8 @@
      * The syscall will put the thread to sleep only
      * if the futex word still contains the expected
      * value i.e. efWord. If the futex word contents have
-     * changed, it fails with the error EAGAIN.
+     * changed, it fails with the error EAGAIN; If a timeout
+     * is specified and exceeded the syscall fails with ETIMEDOUT.
      */
     int ret = 0;
     if (timeoutNanoSeconds) {
@@ -168,7 +169,7 @@
     }
     if (ret == -1) {
         status = -errno;
-        if (status != -EAGAIN) {
+        if (status != -EAGAIN && status != -ETIMEDOUT) {
             ALOGE("Event flag wait was unsuccessful: %s\n", strerror(errno));
         }
         *efState = 0;