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

Commit 91a85fd9 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

test_vendor: Replace __FUNCTION__ with __func__

am: 07b5a0e5

Change-Id: I5608b7565b3ddb0679f5865016daa876855e63a7
parents 9a7f997b 07b5a0e5
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -105,7 +105,7 @@ class AsyncManager::AsyncFdWatcher {
    // start the thread if not started yet
    // start the thread if not started yet
    int started = tryStartThread();
    int started = tryStartThread();
    if (started != 0) {
    if (started != 0) {
      LOG_ERROR(LOG_TAG, "%s: Unable to start thread", __FUNCTION__);
      LOG_ERROR(LOG_TAG, "%s: Unable to start thread", __func__);
      return started;
      return started;
    }
    }


@@ -136,7 +136,7 @@ class AsyncManager::AsyncFdWatcher {
    } else {
    } else {
      LOG_WARN(LOG_TAG,
      LOG_WARN(LOG_TAG,
               "%s: Starting thread stop from inside the reading thread itself",
               "%s: Starting thread stop from inside the reading thread itself",
               __FUNCTION__);
               __func__);
    }
    }


    {
    {
@@ -163,7 +163,7 @@ class AsyncManager::AsyncFdWatcher {
      LOG_ERROR(LOG_TAG,
      LOG_ERROR(LOG_TAG,
                "%s:Unable to establish a communication channel to the reading "
                "%s:Unable to establish a communication channel to the reading "
                "thread",
                "thread",
                __FUNCTION__);
                __func__);
      return -1;
      return -1;
    }
    }
    notification_listen_fd_ = pipe_fds[0];
    notification_listen_fd_ = pipe_fds[0];
@@ -171,7 +171,7 @@ class AsyncManager::AsyncFdWatcher {


    thread_ = std::thread([this]() { ThreadRoutine(); });
    thread_ = std::thread([this]() { ThreadRoutine(); });
    if (!thread_.joinable()) {
    if (!thread_.joinable()) {
      LOG_ERROR(LOG_TAG, "%s: Unable to start reading thread", __FUNCTION__);
      LOG_ERROR(LOG_TAG, "%s: Unable to start reading thread", __func__);
      return -1;
      return -1;
    }
    }
    return 0;
    return 0;
@@ -181,7 +181,7 @@ class AsyncManager::AsyncFdWatcher {
    char buffer = '0';
    char buffer = '0';
    if (TEMP_FAILURE_RETRY(write(notification_write_fd_, &buffer, 1)) < 0) {
    if (TEMP_FAILURE_RETRY(write(notification_write_fd_, &buffer, 1)) < 0) {
      LOG_ERROR(LOG_TAG, "%s: Unable to send message to reading thread",
      LOG_ERROR(LOG_TAG, "%s: Unable to send message to reading thread",
                __FUNCTION__);
                __func__);
      return -1;
      return -1;
    }
    }
    return 0;
    return 0;
@@ -246,7 +246,7 @@ class AsyncManager::AsyncFdWatcher {
        LOG_ERROR(LOG_TAG,
        LOG_ERROR(LOG_TAG,
                  "%s: There was an error while waiting for data on the file "
                  "%s: There was an error while waiting for data on the file "
                  "descriptors",
                  "descriptors",
                  __FUNCTION__);
                  __func__);
        continue;
        continue;
      }
      }


@@ -320,7 +320,7 @@ class AsyncManager::AsyncTaskManager {
    } else {
    } else {
      LOG_WARN(LOG_TAG,
      LOG_WARN(LOG_TAG,
               "%s: Starting thread stop from inside the task thread itself",
               "%s: Starting thread stop from inside the task thread itself",
               __FUNCTION__);
               __func__);
    }
    }
    return 0;
    return 0;
  }
  }
@@ -390,7 +390,7 @@ class AsyncManager::AsyncTaskManager {
    // start thread if necessary
    // start thread if necessary
    int started = tryStartThread();
    int started = tryStartThread();
    if (started != 0) {
    if (started != 0) {
      LOG_ERROR(LOG_TAG, "%s: Unable to start thread", __FUNCTION__);
      LOG_ERROR(LOG_TAG, "%s: Unable to start thread", __func__);
      return kInvalidTaskId;
      return kInvalidTaskId;
    }
    }
    // notify the thread so that it knows of the new task
    // notify the thread so that it knows of the new task
@@ -414,7 +414,7 @@ class AsyncManager::AsyncTaskManager {
    running_ = true;
    running_ = true;
    thread_ = std::thread([this]() { ThreadRoutine(); });
    thread_ = std::thread([this]() { ThreadRoutine(); });
    if (!thread_.joinable()) {
    if (!thread_.joinable()) {
      LOG_ERROR(LOG_TAG, "%s: Unable to start task thread", __FUNCTION__);
      LOG_ERROR(LOG_TAG, "%s: Unable to start task thread", __func__);
      return -1;
      return -1;
    }
    }
    return 0;
    return 0;