Skip to contentSkip to conversation

cluster/cman/daemon logging.c logging.h

Cluster-devel [email protected] 1 participant 1 message Nov 8, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at 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

cman/daemon/logging.c +0 -2
@@ -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
cman/daemon/logging.h +0 -11
@@ -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