diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-10 23:52:46 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-10 23:52:46 +0000 |
commit | b9648c396b1fae393e6a20c7ddd3debee89b5cb9 (patch) | |
tree | fb1a246ed2b1312e0abcd32f2f7447bdc1815573 /nuttx/examples/ostest/prioinherit.c | |
parent | 29bc7ab1359bd069c7a4909ed8694177d9482542 (diff) | |
download | px4-nuttx-b9648c396b1fae393e6a20c7ddd3debee89b5cb9.tar.gz px4-nuttx-b9648c396b1fae393e6a20c7ddd3debee89b5cb9.tar.bz2 px4-nuttx-b9648c396b1fae393e6a20c7ddd3debee89b5cb9.zip |
Repartition functionality in preparation for nested, pending reprioritization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1591 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/prioinherit.c')
-rw-r--r-- | nuttx/examples/ostest/prioinherit.c | 10 |
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); |