Module: xenomai-2.5
Branch: master
Commit: 0aea7ddfcb9a8c79bbd16cb09540085e75c3e742
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=0aea7ddfcb9a8c79bbd16cb09540085e75c3e742

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

nucleus: 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