Changeset: 64e1a798244b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/64e1a798244b
Modified Files:
        gdk/gdk_bat.c
        gdk/gdk_tracer.h
Branch: Mar2025
Log Message:

More tracer cleanup.


diffs (35 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -2454,7 +2454,7 @@ BATmode(BAT *b, bool transient)
 #ifdef NDEBUG
 /* assertions are disabled, turn failing tests into a message */
 #undef assert
-#define assert(test)   ((void) ((test) || (TRC_CRITICAL_ENDIF(CHECK, 
"Assertion `%s' failed\n", #test), 0)))
+#define assert(test)   ((void) ((test) || (TRC_CRITICAL(CHECK, "Assertion `%s' 
failed\n", #test), 0)))
 #endif
 
 static void
diff --git a/gdk/gdk_tracer.h b/gdk/gdk_tracer.h
--- a/gdk/gdk_tracer.h
+++ b/gdk/gdk_tracer.h
@@ -183,15 +183,15 @@ gdk_export ATOMIC_TYPE lvl_per_component
 
 // Conditional logging - Example usage
 // NOTE: When using the macro with *_IF always use the macro with
-// *_ENDIF for logging. Avoiding to do that will result into checking
-// the LOG_LEVEL of the the COMPONENT 2 times. Also NEVER use the
+// *_ENDIF for logging. Not doing that will result in checking
+// the LOG_LEVEL of the the COMPONENT twice. Also NEVER use the
 // *_ENDIF macro without before performing a check with *_IF
 // macro. Such an action will have as a consequence logging everything
 // without taking into account the LOG_LEVEL of the COMPONENT.
 /*
-    TRC_CRITICAL_IF(SQL_STORE)
+    TRC_INFO_IF(SQL_STORE)
     {
-       TRC_CRITICAL_ENDIF(SQL_STORE, "Test\n")
+       TRC_INFO_ENDIF(SQL_STORE, "Test\n")
     }
 */
 #define TRC_CRITICAL_IF(COMP)                  \
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to