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

[Cluster-devel] [PATCH] rgmanager: Make command line debug work



Signed-off-by: Lon Hohberger <lhh redhat com>
---
 rgmanager/src/clulib/logging.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rgmanager/src/clulib/logging.c b/rgmanager/src/clulib/logging.c
index b7bdac1..e1bf751 100644
--- a/rgmanager/src/clulib/logging.c
+++ b/rgmanager/src/clulib/logging.c
@@ -43,7 +43,7 @@ init_logging(char *name, int foreground, int default_prio)
 	if (default_prio >= 0)
 		default_priority = default_prio;
 	logt_init(name, default_mode, DEFAULT_FACILITY,
-		  DEFAULT_PRIORITY, DEFAULT_PRIORITY, DEFAULT_FILE);
+		  default_priority, default_priority, DEFAULT_FILE);
 }
 
 
@@ -73,7 +73,7 @@ ccs_read_old_logging(int ccsfd, int *facility, int *priority)
 		*priority = atoi(val);
 		free(val);
 		if (*priority < 0)
-			*priority = DEFAULT_PRIORITY;
+			*priority = default_priority;
 		else
 			ret = 1;
 	}
@@ -88,7 +88,7 @@ setup_logging(int ccs_handle)
 {
 	int mode = DEFAULT_MODE;
 	int facility = DEFAULT_FACILITY;
-	int loglevel = DEFAULT_PRIORITY, filelevel = DEFAULT_PRIORITY;
+	int loglevel = default_priority, filelevel = default_priority;
 	int debug = 0;
 	char file[PATH_MAX];
 
-- 
1.6.0.6


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