public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - libccs: daemon logging config
@ 2009-02-20 19:13 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-02-20 19:13 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d8e88c6697733ee4ef6109b200bb79cd135105ea
Commit:        d8e88c6697733ee4ef6109b200bb79cd135105ea
Parent:        114e83ae331d5e112f010e258cfe8d6eafba02ee
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Fri Feb 20 12:34:44 2009 -0600
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Fri Feb 20 12:44:54 2009 -0600

libccs: daemon logging config

<logging_subsys subsys="foo"/> changes to
<logging_daemon name="foo"/>

Signed-off-by: David Teigland <teigland@redhat.com>
---
 config/libs/libccsconfdb/extras.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/config/libs/libccsconfdb/extras.c b/config/libs/libccsconfdb/extras.c
index 2e5e694..3dd368a 100644
--- a/config/libs/libccsconfdb/extras.c
+++ b/config/libs/libccsconfdb/extras.c
@@ -280,11 +280,11 @@ static void read_onoff(int fd, char *path, int *on, int *off)
 }
 
 /* requires path buffer to be PATH_MAX */
-static void create_subsys_path(char *name, char *field, char *path)
+static void create_daemon_path(char *name, char *field, char *path)
 {
 	memset(path, 0, PATH_MAX);
 	snprintf(path, PATH_MAX,
-		 "/cluster/logging/logging_subsys[@subsys=\"%s\"]/%s",
+		 "/cluster/logging/logging_daemon[@name=\"%s\"]/%s",
 		 name, field);
 }
 
@@ -305,7 +305,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * to_syslog 
 	 */
-	create_subsys_path(name, "to_syslog", path);
+	create_daemon_path(name, "to_syslog", path);
 
 	read_yesno(fd, "/cluster/logging/@to_syslog", &y, &n);
 	if (y)
@@ -322,7 +322,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * to_logfile
 	 */
-	create_subsys_path(name, "to_logfile", path);
+	create_daemon_path(name, "to_logfile", path);
 
 	read_yesno(fd, "/cluster/logging/@to_logfile", &y, &n);
 	if (y)
@@ -339,7 +339,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * syslog_facility
 	 */
-	create_subsys_path(name, "syslog_facility", path);
+	create_daemon_path(name, "syslog_facility", path);
 
 	read_string(fd, "/cluster/logging/@syslog_facility", string);
 
@@ -360,7 +360,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * syslog_priority
 	 */
-	create_subsys_path(name, "syslog_priority", path);
+	create_daemon_path(name, "syslog_priority", path);
 
 	read_string(fd, "/cluster/logging/@syslog_priority", string);
 
@@ -381,7 +381,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * logfile
 	 */
-	create_subsys_path(name, "logfile", path);
+	create_daemon_path(name, "logfile", path);
 
 	read_string(fd, "/cluster/logging/@logfile", string);
 
@@ -406,7 +406,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	 * debug
 	 * debug=on is a shortcut for logfile_priority=LOG_DEBUG
 	 */
-	create_subsys_path(name, "debug", path);
+	create_daemon_path(name, "debug", path);
 
 	read_onoff(fd, "/cluster/logging/@debug", &on, &off);
 	if (on)
@@ -426,7 +426,7 @@ void ccs_read_logging(int fd, char *name, int *debug, int *mode,
 	/*
 	 * logfile_priority
 	 */
-	create_subsys_path(name, "logfile_priority", path);
+	create_daemon_path(name, "logfile_priority", path);
 
 	read_string(fd, "/cluster/logging/@logfile_priority", string);
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-20 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-20 19:13 cluster: STABLE3 - libccs: daemon logging config David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).