From d0c09771dbdac03d5bf28b62c06f21b9da88b963 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 23 Feb 2016 10:27:40 -0600 Subject: [PATCH] sched: Recent change of ASSERT to DEBUGASSERT causes a crash when debug is diabled because there is a critical function call within the assertion --- configs | 2 +- sched/sched/sched_setpriority.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs b/configs index 3ffa424853..521652bd7f 160000 --- a/configs +++ b/configs @@ -1 +1 @@ -Subproject commit 3ffa42485392801e69a4a17e1dab42b6174a9332 +Subproject commit 521652bd7fcedc8c92e928fccb8c493f30456b59 diff --git a/sched/sched/sched_setpriority.c b/sched/sched/sched_setpriority.c index ba969eb13f..9e2c9384aa 100644 --- a/sched/sched/sched_setpriority.c +++ b/sched/sched/sched_setpriority.c @@ -185,7 +185,7 @@ static void sched_readytorun_setpriority(FAR struct tcb_s *tcb, /* Put it back into the correct ready-to-run task list */ - DEBUGASSERT(!sched_addreadytorun(tcb)); + ASSERT(!sched_addreadytorun(tcb)); } }