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

Commit def068f5 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Add extra log if timer_create(CLOCK_BOOTTIME_ALARM) fails

am: 88e0fe62

* commit '88e0fe62':
  Add extra log if timer_create(CLOCK_BOOTTIME_ALARM) fails
parents af16b9d4 88e0fe62
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -659,6 +659,10 @@ static bool timer_create_internal(const clockid_t clock_id, timer_t *timer) {
  if (timer_create(clock_id, &sigevent, timer) == -1) {
    LOG_ERROR(LOG_TAG, "%s unable to create timer with clock %d: %s",
              __func__, clock_id, strerror(errno));
    if (clock_id == CLOCK_BOOTTIME_ALARM) {
      LOG_ERROR(LOG_TAG, "The kernel might not have support for timer_create(CLOCK_BOOTTIME_ALARM): https://lwn.net/Articles/429925/");
      LOG_ERROR(LOG_TAG, "See following patches: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/?qt=grep&q=CLOCK_BOOTTIME_ALARM");
    }
    return false;
  }