Module: xenomai-jki
Branch: for-forge
Commit: 06d66ce0ba3ae8ce6d9f171d690a96f81347cd49
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=06d66ce0ba3ae8ce6d9f171d690a96f81347cd49

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Aug 27 20:12:48 2013 +0200

cobalt/posix/timer: Fix debug output

The local variable tm was removed. Update the debug printk accordingly.

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

---

 kernel/cobalt/posix/timer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/cobalt/posix/timer.c b/kernel/cobalt/posix/timer.c
index cf043d4..1c8ded4 100644
--- a/kernel/cobalt/posix/timer.c
+++ b/kernel/cobalt/posix/timer.c
@@ -620,7 +620,8 @@ void cobalt_timerq_cleanup(struct cobalt_kqueues *q)
                timer_cleanup(timer);
                xnlock_put_irqrestore(&nklock, s);
 #if XENO_DEBUG(COBALT)
-               printk(XENO_INFO "deleting Cobalt timer %u\n", (unsigned 
int)tm);
+               printk(XENO_INFO "deleting Cobalt timer %u\n",
+                      (unsigned int)(timer - cobalt_timer_pool));
 #endif /* XENO_DEBUG(COBALT) */
                xnlock_get_irqsave(&nklock, s);
        }


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

Reply via email to