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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Sep 30 11:42:52 2013 +0200

cobalt/sched: display CPU number when watchdog triggers

---

 kernel/cobalt/sched.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/cobalt/sched.c b/kernel/cobalt/sched.c
index af7bc34..aab6c02 100644
--- a/kernel/cobalt/sched.c
+++ b/kernel/cobalt/sched.c
@@ -109,12 +109,12 @@ static void watchdog_handler(struct xntimer *timer)
                   curr, xnthread_name(curr));
 
        if (xnthread_test_state(curr, XNUSER)) {
-               printk(XENO_WARN "watchdog triggered -- runaway thread "
-                      "'%s' signaled\n", xnthread_name(curr));
+               printk(XENO_WARN "watchdog triggered on CPU #%d -- runaway 
thread "
+                      "'%s' signaled\n", xnsched_cpu(sched), 
xnthread_name(curr));
                xnshadow_call_mayday(curr, SIGDEBUG_WATCHDOG);
        } else {
-               printk(XENO_WARN "watchdog triggered -- runaway thread "
-                      "'%s' cancelled\n", xnthread_name(curr));
+               printk(XENO_WARN "watchdog triggered on CPU #%d -- runaway 
thread "
+                      "'%s' cancelled\n", xnsched_cpu(sched), 
xnthread_name(curr));
                xnthread_cancel(curr);
        }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to