public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: master - libccs: daemon logging config
@ 2009-02-25 10:25 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-02-25 10:25 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f4c6d690d77929c313fb0562f7b2f9da75b720e6
Commit:        f4c6d690d77929c313fb0562f7b2f9da75b720e6
Parent:        9dafa385dab9d04bf14843e83515a7b92a7198d5
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Fri Feb 20 12:34:44 2009 -0600
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Feb 25 11:23:57 2009 +0100

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-25 10:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-25 10:25 cluster: master - libccs: daemon logging config Fabio M. Di Nitto

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).