summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest/prioinherit.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/ostest/prioinherit.c')
-rw-r--r--nuttx/examples/ostest/prioinherit.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/examples/ostest/prioinherit.c b/nuttx/examples/ostest/prioinherit.c
index e4b2fa7dd..7754ca587 100644
--- a/nuttx/examples/ostest/prioinherit.c
+++ b/nuttx/examples/ostest/prioinherit.c
@@ -237,7 +237,10 @@ static void *lowpri_thread(void *parameter)
}
else
{
- printf("lowpri_thread: Priority before sem_post: %d\n", sparam.sched_priority);
+ printf("lowpri_thread: %s priority before sem_post: %d\n",
+ sparam.sched_priority != g_highpri ? "ERROR" : "SUCCESS",
+ sparam.sched_priority);
+
if (sparam.sched_priority != g_highpri)
{
printf(" ERROR should have been %d\n", g_highpri);
@@ -252,7 +255,10 @@ static void *lowpri_thread(void *parameter)
}
else
{
- printf("lowpri_thread: Final priority: %d\n", sparam.sched_priority);
+ printf("lowpri_thread: %s final priority: %d\n",
+ sparam.sched_priority != g_lowpri ? "ERROR" : "SUCCESS",
+ sparam.sched_priority);
+
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);