summaryrefslogtreecommitdiffstats
path: root/rtemsbsd
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-22 07:21:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-22 07:21:54 +0200
commit2c44b51475674c54e9b27178acb051f0e485a818 (patch)
tree2a82192304a86ee5ce5b36dea4624bfaa0205f71 /rtemsbsd
parentPort getdomainname() to RTEMS (diff)
downloadrtems-libbsd-2c44b51475674c54e9b27178acb051f0e485a818.tar.bz2
Use _Thread_Get_priority()
Diffstat (limited to 'rtemsbsd')
-rw-r--r--rtemsbsd/rtems/rtems-bsd-shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-shell.c b/rtemsbsd/rtems/rtems-bsd-shell.c
index 2cf8ede5..b54bb797 100644
--- a/rtemsbsd/rtems/rtems-bsd-shell.c
+++ b/rtemsbsd/rtems/rtems-bsd-shell.c
@@ -49,6 +49,7 @@
#include <inttypes.h>
#include <rtems/netcmds-config.h>
+#include <rtems/score/threadimpl.h>
static void
rtems_bsd_dump_thread(Thread_Control *thread)
@@ -68,7 +69,7 @@ rtems_bsd_dump_thread(Thread_Control *thread)
stdout,
" 0x%08" PRIx32 " | %8" PRIu32 " | %s\n",
thread->Object.id,
- thread->current_priority,
+ _Thread_Get_priority(thread),
name
);
}