Module: xenomai-jki Branch: for-upstream Commit: 9b5319566ef49151f2b1160f4a7ad89f7b6d1d1a URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=9b5319566ef49151f2b1160f4a7ad89f7b6d1d1a
Author: Jan Kiszka <[email protected]> Date: Fri Aug 20 14:51:55 2010 +0200 Fix symbolic status ouput of root threads Signed-off-by: Jan Kiszka <[email protected]> --- ksrc/nucleus/thread.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/thread.c b/ksrc/nucleus/thread.c index 73163f2..ac38144 100644 --- a/ksrc/nucleus/thread.c +++ b/ksrc/nucleus/thread.c @@ -219,6 +219,10 @@ char *xnthread_format_status(xnflags_t status, char *buf, int size) case XNROOT: c = 'R'; /* Always mark root as runnable. */ break; + case XNREADY: + if (status & XNROOT) + continue; /* Already reported on XNROOT. */ + break; case XNDELAY: /* * Only report genuine delays here, not timed _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
