From 508e73e10570e089102a95fa7eafa5fc4a5e4cdc Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Thu, 7 Jul 2022 08:39:49 -0700 Subject: [PATCH] lmkd: Fix the text of the warning when pthread_setschedparam fails Fix the text of the warning when pthread_setschedparam fails to set SCHED_OTHER scheduling policy for a reaper thread. Bug: 237180716 Signed-off-by: Suren Baghdasaryan Change-Id: I1b04713d145f4f3c243f16f932c753f5b06d48e6 --- reaper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reaper.cpp b/reaper.cpp index 8603793..6e4ee6d 100644 --- a/reaper.cpp +++ b/reaper.cpp @@ -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, ¶m)) { - 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)) {