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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Apr 18 18:02:14 2014 +0200

cobalt/init: emit boot notice for enabled event tracing

---

 kernel/cobalt/init.c |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/kernel/cobalt/init.c b/kernel/cobalt/init.c
index e753820..8a80337 100644
--- a/kernel/cobalt/init.c
+++ b/kernel/cobalt/init.c
@@ -71,15 +71,21 @@ struct xnsys_ppd __xnsys_global_ppd = {
 EXPORT_SYMBOL_GPL(__xnsys_global_ppd);
 
 #ifdef CONFIG_XENO_OPT_DEBUG
-#define boot_debug_notice " [DEBUG]"
+#define boot_debug_notice "[DEBUG]"
 #else
 #define boot_debug_notice ""
 #endif
 
 #ifdef CONFIG_IPIPE_TRACE
-#define boot_trace_notice " [TRACE]"
+#define boot_lat_trace_notice "[LTRACE]"
 #else
-#define boot_trace_notice ""
+#define boot_lat_trace_notice ""
+#endif
+
+#ifdef CONFIG_ENABLE_DEFAULT_TRACERS
+#define boot_evt_trace_notice "[ETRACE]"
+#else
+#define boot_evt_trace_notice ""
 #endif
 
 static void disable_timesource(void)
@@ -422,10 +428,11 @@ static int __init xenomai_init(void)
        if (ret)
                goto cleanup_rtdm;
 
-       printk(XENO_INFO "Cobalt v%s enabled%s%s\n",
+       printk(XENO_INFO "Cobalt v%s enabled %s%s%s\n",
               XENO_VERSION_STRING,
               boot_debug_notice,
-              boot_trace_notice);
+              boot_lat_trace_notice,
+              boot_evt_trace_notice);
 
        return 0;
 


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

Reply via email to