lmkd: Fix the text of the warning when pthread_setschedparam fails am: 508e73e105 am: 4a4e1590f1 am: 8d1acb0268 am: 45c03b00f7 am: 0932e5c765

Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2147680

Change-Id: Ief42ca64dbe4d85066f6500770f71403e491a591
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Suren Baghdasaryan 2022-07-07 19:35:53 +00:00 committed by Automerger Merge Worker
commit afe0e8fe16
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bool Reaper::init(int comm_fd) {
}
// set normal scheduling policy for the reaper thread
if (pthread_setschedparam(thread_pool_[thread_cnt_], SCHED_OTHER, &param)) {
ALOGW("set SCHED_FIFO failed %s", strerror(errno));
ALOGW("set SCHED_OTHER failed %s", strerror(errno));
}
snprintf(name, sizeof(name), "lmkd_reaper%d", thread_cnt_);
if (pthread_setname_np(thread_pool_[thread_cnt_], name)) {