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

Commit 5300491d authored by Myles Watson's avatar Myles Watson
Browse files

osi: Update error messages

Test: build
Change-Id: I5af34f01c47d8037d56c27e7e3fab3cc2f5fd2bc
parent 751ba76d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ int osi_rand(void) {
  if (rand_fd == INVALID_FD) {
    LOG_ERROR(LOG_TAG, "%s can't open rand fd %s: %s ", __func__, RANDOM_PATH,
              strerror(errno));
    CHECK(0);
    CHECK(rand_fd != INVALID_FD);
  }

  ssize_t read_bytes = read(rand_fd, &rand, sizeof(rand));
+1 −1
Original line number Diff line number Diff line
@@ -191,7 +191,7 @@ static void* run_thread(void* start_arg) {
  }
  thread->tid = gettid();

  LOG_WARN(LOG_TAG, "%s: thread id %d, thread name %s started", __func__,
  LOG_INFO(LOG_TAG, "%s: thread id %d, thread name %s started", __func__,
           thread->tid, thread->name);

  semaphore_post(start->start_sem);
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include <mutex>
#include <string>

#include "base/logging.h"
#include "osi/include/alarm.h"
#include "osi/include/allocator.h"
#include "osi/include/log.h"
@@ -198,6 +199,7 @@ static void wakelock_initialize_native(void) {
  if (wake_lock_fd == INVALID_FD) {
    LOG_ERROR(LOG_TAG, "%s can't open wake lock %s: %s", __func__,
              wake_lock_path.c_str(), strerror(errno));
    CHECK(wake_lock_fd != INVALID_FD);
  }

  if (wake_unlock_path.empty()) wake_unlock_path = DEFAULT_WAKE_UNLOCK_PATH;
@@ -206,6 +208,7 @@ static void wakelock_initialize_native(void) {
  if (wake_unlock_fd == INVALID_FD) {
    LOG_ERROR(LOG_TAG, "%s can't open wake unlock %s: %s", __func__,
              wake_unlock_path.c_str(), strerror(errno));
    CHECK(wake_unlock_fd != INVALID_FD);
  }
}