From eb7e1829730ff7ebb5cd4c366e435197321ae27a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 29 Mar 2011 08:51:50 +0200 Subject: [PATCH 1/1] Add colors to trace categories. I am still unable to exploit those traces... --- main.cpp | 6 +++--- tracing.h | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 9a6b5b2..102122d 100644 --- a/main.cpp +++ b/main.cpp @@ -236,9 +236,9 @@ int main(int argc, char* argv[]) } // Register tracing categories - TRACE_category(TRACE_CAT_COMP); - TRACE_category(TRACE_CAT_CTRL); - TRACE_category(TRACE_CAT_DATA); + TRACE_category_with_color(TRACE_CAT_COMP, TRACE_COLOR_COMP); + TRACE_category_with_color(TRACE_CAT_CTRL, TRACE_COLOR_CTRL); + TRACE_category_with_color(TRACE_CAT_DATA, TRACE_COLOR_DATA); exit_status = EXIT_FAILURE_SIMU; // ===== diff --git a/tracing.h b/tracing.h index f283465..57b8f7f 100644 --- a/tracing.h +++ b/tracing.h @@ -5,6 +5,10 @@ #define TRACE_CAT_CTRL "ctrl_mesg" #define TRACE_CAT_DATA "data_mesg" +#define TRACE_COLOR_COMP "1 0 0" // red +#define TRACE_COLOR_CTRL "0 1 0" // green +#define TRACE_COLOR_DATA "0 0 1" // blue + #endif // !TRACING_H // Local variables: -- 2.39.5