From: Arnaud Giersch Date: Tue, 29 Mar 2011 06:51:50 +0000 (+0200) Subject: Add colors to trace categories. X-Git-Tag: v0.1~71 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/eb7e1829730ff7ebb5cd4c366e435197321ae27a?ds=inline Add colors to trace categories. I am still unable to exploit those traces... --- 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: