add citation information
[LbmBenchmarkKernelsPublic.git] / src / Base.h
index 27f91165d8c33d44c19a6503973e35f5aa9ecba8..a848cf8b4880158e0d8d93649240825b4b08eda7 100644 (file)
@@ -27,6 +27,8 @@
 #ifndef __BASE_H__
 #define __BASE_H__
 
+#include "Config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -44,8 +46,6 @@ static inline double Time()
 }
 
 
-#define TOOL_NAME "lbmbenchk"
-
 #define STRINGIFYX(x)   #x
 #define STRINGIFY(x)    STRINGIFYX(x)
 
@@ -117,17 +117,17 @@ static inline double Time()
         } while (0)
 
     #define Print(formatString, ...) \
-        fprintf(stdout, SHC_MAGENTA "[" TOOL_NAME "] " SHC_NC formatString, ##__VA_ARGS__)
+        fprintf(stdout, SHC_MAGENTA formatString SHC_NC, ##__VA_ARGS__)
 
     #define Warning(formatString, ...) \
-        fprintf(stdout, "[" TOOL_NAME "] WARNING: " formatString, ##__VA_ARGS__)
+        fprintf(stdout, SHC_BROWN "WARNING: " SHC_NC formatString, ##__VA_ARGS__)
 
     #define Error(formatString, ...) \
-        fprintf(stderr, SHC_RED "[" TOOL_NAME "] ERROR: " formatString SHC_NC , ##__VA_ARGS__)
-
+        fprintf(stderr, SHC_RED "ERROR: " formatString SHC_NC , ##__VA_ARGS__)
+/*
     #define DebugPrint(formatString, ...) \
-        fprintf(stderr, "[" TOOL_NAME "] DEBUG: " formatString, ##__VA_ARGS__)
-
+        fprintf(stderr, "DEBUG: " formatString, ##__VA_ARGS__)
+*/
     #ifndef NO_SHELL_COLORS
 
         // or "\e"
This page took 0.073463 seconds and 5 git commands to generate.