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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Nov  3 13:11:25 2015 +0100

cobalt/kernel: fixup for v3.19+ (trace_seq)

---

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

diff --git a/kernel/cobalt/trace/cobalt-posix.h 
b/kernel/cobalt/trace/cobalt-posix.h
index 536108d..d87582f 100644
--- a/kernel/cobalt/trace/cobalt-posix.h
+++ b/kernel/cobalt/trace/cobalt-posix.h
@@ -92,7 +92,7 @@ DECLARE_EVENT_CLASS(syscall_exit,
 
 #define cobalt_print_sched_params(__policy, __p_ex)                    \
 ({                                                                     \
-       const char *__ret = p->buffer + p->len;                         \
+       const unsigned char *__ret = trace_seq_buffer_ptr(p);           \
        switch (__policy) {                                             \
        case SCHED_QUOTA:                                               \
                trace_seq_printf(p, "priority=%d, group=%d",            \


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

Reply via email to