[Zope-Checkins] CVS: Products/DCOracle2/src - dco2.c:1.127

Matthew T. Kromer matt@zope.com
Mon, 9 Dec 2002 17:24:56 -0500


Update of /cvs-repository/Products/DCOracle2/src
In directory cvs.zope.org:/tmp/cvs-serv1002/src

Modified Files:
	dco2.c 
Log Message:
Un-break the TRACE macro to do proper event filtering


=== Products/DCOracle2/src/dco2.c 1.126 => 1.127 ===
--- Products/DCOracle2/src/dco2.c:1.126	Thu Dec  5 13:22:58 2002
+++ Products/DCOracle2/src/dco2.c	Mon Dec  9 17:24:55 2002
@@ -186,7 +186,7 @@
 ** case of problems
 */
 
-#define TRACE(condition,args) if (traceFlags & condition) *(trace args) = (char) condition, Traceprint1(traceLog, -1)
+#define TRACE(condition,args) if ((traceFlags & condition) == condition) *(trace args) = (char) condition, Traceprint1(traceLog, -1)
 
 #define T_TSWITCH (0x08)
 #define T_ENTRY   (0x11)	
@@ -7908,7 +7908,7 @@
 	} else traceFlags = 0;
 	
 
-	TRACE(T_ENTRY, ("sA","initdco2",initdco2));
+	TRACE(T_ENTRY, ("sAd","initdco2",initdco2,traceFlags));
 
 	module = Py_InitModule("dco2", dco2_methods);