From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1987 invoked by alias); 27 Mar 2009 08:58:10 -0000 Received: (qmail 1981 invoked by alias); 27 Mar 2009 08:58:09 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion.fedora.phx.redhat.com Subject: cluster: STABLE3 - cman: change environment variable to CMAN_DEBUG To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE3 X-Git-Reftype: branch X-Git-Oldrev: 9a54d81993c0925a00a269bde2bab3c95310b009 X-Git-Newrev: 1588f4cb84492d85dd6dda95ac5560ebf337b3f8 From: Christine Caulfield Message-Id: <20090327085744.C9D1F120326@lists.fedorahosted.org> Date: Fri, 27 Mar 2009 08:58:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00915.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=1588f4cb84492d85dd6dda95ac5560ebf337b3f8 Commit: 1588f4cb84492d85dd6dda95ac5560ebf337b3f8 Parent: 9a54d81993c0925a00a269bde2bab3c95310b009 Author: Christine Caulfield AuthorDate: Fri Mar 27 08:56:48 2009 +0000 Committer: Christine Caulfield CommitterDate: Fri Mar 27 08:56:48 2009 +0000 cman: change environment variable to CMAN_DEBUG ... for consistency Signed-off-by: Christine Caulfield --- cman/cman_tool/join.c | 2 +- cman/daemon/cman-preconfig.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cman/cman_tool/join.c b/cman/cman_tool/join.c index 9c78937..78f8c52 100644 --- a/cman/cman_tool/join.c +++ b/cman/cman_tool/join.c @@ -166,7 +166,7 @@ int join(commandline_t *comline, char *main_envp[]) envp[envptr++] = strdup(scratch); } if (comline->verbose ^ DEBUG_STARTUP_ONLY) { - snprintf(scratch, sizeof(scratch), "CMAN_DEBUGLOG=%d", comline->verbose); + snprintf(scratch, sizeof(scratch), "CMAN_DEBUG=%d", comline->verbose); envp[envptr++] = strdup(scratch); } if (comline->noconfig_opt) { diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c index 93e940a..22ab959 100644 --- a/cman/daemon/cman-preconfig.c +++ b/cman/daemon/cman-preconfig.c @@ -493,8 +493,8 @@ static int get_env_overrides() expected_votes = 1; votes = 1; } - if (getenv("CMAN_DEBUGLOG")) { - debug_mask = atoi(getenv("CMAN_DEBUGLOG")); + if (getenv("CMAN_DEBUG")) { + debug_mask = atoi(getenv("CMAN_DEBUG")); } return 0;