[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/cman/daemon logging.c logging.h



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield sourceware org	2006-11-08 15:49:39

Modified files:
	cman/daemon    : logging.c logging.h 

Log message:
	Always compile in debug logging - you never know when it might come in handy
	and it's disabled by default anyway.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/logging.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/logging.h.diff?cvsroot=cluster&r1=1.5&r2=1.6

--- cluster/cman/daemon/logging.c	2006/06/30 13:00:27	1.12
+++ cluster/cman/daemon/logging.c	2006/11/08 15:49:39	1.13
@@ -50,7 +50,6 @@
 	subsys_mask = subsystems;
 }
 
-#ifdef DEBUG
 void log_debug(int subsys, int stamp, const char *fmt, ...)
 {
 	va_list va;
@@ -91,4 +90,3 @@
 	log_printf(LOG_LEVEL_DEBUG, log_buf);
 	va_end(va);
 }
-#endif
--- cluster/cman/daemon/logging.h	2006/04/21 10:13:40	1.5
+++ cluster/cman/daemon/logging.h	2006/11/08 15:49:39	1.6
@@ -14,8 +14,6 @@
 extern void init_debug(int subsystems);
 
 /* Debug macros */
-#ifdef DEBUG
-
 #define CMAN_DEBUG_NONE    1
 #define CMAN_DEBUG_BARRIER 2
 #define CMAN_DEBUG_MEMB    4
@@ -28,12 +26,3 @@
 #define P_MEMB(fmt, args...)    log_debug(CMAN_DEBUG_MEMB, 1, fmt, ## args)
 #define P_DAEMON(fmt, args...)  log_debug(CMAN_DEBUG_DAEMON, 1, fmt, ## args)
 #define P_AIS(fmt, args...)     log_debug(CMAN_DEBUG_AIS, 1, fmt, ## args)
-
-#else
-
-#define P_BARRIER(fmt, args...)
-#define P_MEMB(fmt, args...)
-#define P_DAEMON(fmt, args...)
-#define P_AIS(fmt, args...)
-
-#endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]