Skip to content

Commit b2caec8

Browse files
ycsincarlescufi
authored andcommitted
posix: pthread: fix typos
- 'piority' should be 'priority' - COOP should start from `-CONFIG_NUM_COOP_PRIORITIES` Signed-off-by: Yong Cong Sin <[email protected]>
1 parent 66fdd39 commit b2caec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/posix/pthread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static bool is_posix_policy_prio_valid(uint32_t priority, int policy)
222222
return true;
223223
}
224224

225-
LOG_ERR("Invalid piority %d and / or policy %d", priority, policy);
225+
LOG_ERR("Invalid priority %d and / or policy %d", priority, policy);
226226

227227
return false;
228228
}
@@ -242,7 +242,7 @@ static uint32_t zephyr_to_posix_priority(int32_t z_prio, int *policy)
242242
static int32_t posix_to_zephyr_priority(uint32_t priority, int policy)
243243
{
244244
if (policy == SCHED_FIFO) {
245-
/* COOP: highest [CONFIG_NUM_COOP_PRIORITIES, -1] lowest */
245+
/* COOP: highest [-CONFIG_NUM_COOP_PRIORITIES, -1] lowest */
246246
__ASSERT_NO_MSG(priority < CONFIG_NUM_COOP_PRIORITIES);
247247
} else {
248248
/* PREEMPT: lowest [0, CONFIG_NUM_PREEMPT_PRIORITIES - 1] highest */

0 commit comments

Comments
 (0)