Module: xenomai-jki
Branch: for-upstream
Commit: 30c1ce613213b23b7ad0583c265bda960db90b6c
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=30c1ce613213b23b7ad0583c265bda960db90b6c

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Aug 20 14:51:55 2010 +0200

Fix symbolic status output of root threads

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 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
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to