Module: xenomai-3
Branch: next
Commit: 237d20eba30f9d53dec65dfe217c513511f9288b
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=237d20eba30f9d53dec65dfe217c513511f9288b

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Mon Jun 29 09:39:33 2015 +0200

cobalt/kernel: Print suspension mask as hex in traces

Aligns cobalt_thread_suspend with cobalt_thread_resume and makes traces
easier readable.

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

---

 kernel/cobalt/trace/cobalt-core.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/trace/cobalt-core.h 
b/kernel/cobalt/trace/cobalt-core.h
index dc23588..ee20b7c 100644
--- a/kernel/cobalt/trace/cobalt-core.h
+++ b/kernel/cobalt/trace/cobalt-core.h
@@ -251,7 +251,7 @@ TRACE_EVENT(cobalt_thread_suspend,
                __entry->wchan = wchan;
        ),
 
-       TP_printk("thread=%p mask=%lu timeout=%Lu timeout_mode=%d wchan=%p",
+       TP_printk("thread=%p mask=0x%lx timeout=%Lu timeout_mode=%d wchan=%p",
                  __entry->thread, __entry->mask,
                  __entry->timeout, __entry->timeout_mode, __entry->wchan)
 );


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

Reply via email to