New macro INFO()
@@ -71,6 +71,17 @@ adlb_code xlb_debug_check_environment(void);
ENABLE_DEBUG or at run-time by setting environment variable
ADLB_DEBUG=0
*/
+#if ENABLE_LOG_DEBUG && !defined(NDEBUG)
+#define INFO_ENABLED 1
+#define INFO(format, args...) \
+ { printf("%5.4f ADLB: " format "\n", xlb_wtime(), ## args); \
+ fflush(stdout); \
+ }
+#else
+#define INFO(format, args...) // noop
+#define INFO_ENABLED 0
+#endif
+
#if ENABLE_LOG_DEBUG && !defined(NDEBUG)
#define DEBUG_ENABLED 1
#define DEBUG(format, args...) \
