Module: xenomai-3
Branch: wip/dovetail
Commit: 7fd91d4d9de6704c4975fcd989faca457f72b9a7
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7fd91d4d9de6704c4975fcd989faca457f72b9a7

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri May  6 10:42:27 2016 +0200

cobalt/kernel: Null-terminate cobalt_print_sched_params output

Using trace_seq_printf requires to terminate the generated string with
0, or we print additional garbage.

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

---

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

diff --git a/kernel/cobalt/trace/cobalt-posix.h 
b/kernel/cobalt/trace/cobalt-posix.h
index 92f7245..3d0e20c 100644
--- a/kernel/cobalt/trace/cobalt-posix.h
+++ b/kernel/cobalt/trace/cobalt-posix.h
@@ -129,6 +129,7 @@ DECLARE_EVENT_CLASS(syscall_exit,
                                 (__p_ex)->sched_priority);             \
                break;                                                  \
        }                                                               \
+       trace_seq_putc(p, '\0');                                        \
        __ret;                                                          \
 })
 


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

Reply via email to