From: pcaulfield@sourceware.org <pcaulfield@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/cman/daemon logging.c logging.h
Date: 8 Nov 2006 15:49:40 -0000 [thread overview]
Message-ID: <20061108154940.21033.qmail@sourceware.org> (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
--- 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
reply other threads:[~2006-11-08 15:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061108154940.21033.qmail@sourceware.org \
--to=pcaulfield@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.