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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Thu Sep 28 19:55:28 2017 +0200

cobalt/tracing: Do not print numerical policy in trace

__print_symbolic already ensures that unknown policies are printed
numerically.

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

---

 kernel/cobalt/trace/cobalt-posix.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/cobalt/trace/cobalt-posix.h 
b/kernel/cobalt/trace/cobalt-posix.h
index cc98a19..7f411e9 100644
--- a/kernel/cobalt/trace/cobalt-posix.h
+++ b/kernel/cobalt/trace/cobalt-posix.h
@@ -149,8 +149,8 @@ DECLARE_EVENT_CLASS(cobalt_posix_schedparam,
                memcpy(__get_dynamic_array(param_ex), param_ex, 
sizeof(*param_ex));
        ),
 
-       TP_printk("pth=%p policy=%d(%s) param={ %s }",
-                 (void *)__entry->pth, __entry->policy,
+       TP_printk("pth=%p policy=%s param={ %s }",
+                 (void *)__entry->pth,
                  cobalt_print_sched_policy(__entry->policy),
                  cobalt_print_sched_params(__entry->policy,
                                            (struct sched_param_ex *)
@@ -175,8 +175,8 @@ DECLARE_EVENT_CLASS(cobalt_posix_scheduler,
                memcpy(__get_dynamic_array(param_ex), param_ex, 
sizeof(*param_ex));
        ),
 
-       TP_printk("pid=%d policy=%d(%s) param={ %s }",
-                 __entry->pid, __entry->policy,
+       TP_printk("pid=%d policy=%s param={ %s }",
+                 __entry->pid,
                  cobalt_print_sched_policy(__entry->policy),
                  cobalt_print_sched_params(__entry->policy,
                                            (struct sched_param_ex *)


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

Reply via email to