* [Cluster-devel] cluster/cman/daemon logging.c logging.h
@ 2006-11-08 15:49 pcaulfield
0 siblings, 0 replies; only message in thread
From: pcaulfield @ 2006-11-08 15:49 UTC (permalink / raw)
To: cluster-devel.redhat.com
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
--- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-08 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 15:49 [Cluster-devel] cluster/cman/daemon logging.c logging.h pcaulfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.