Hi, all I revised the sfex_init command to enable the cl_log output of the sfex library.
Please see attached patch and let me know if you have any comments. Best Regards, -- NAKAHIRA Kazutomo Infrastructure Software Technology Unit NTT Open Source Software Center
# HG changeset patch # User NAKAHIRA Kazutomo <nakahira.kazut...@oss.ntt.co.jp> # Date 1291099701 -32400 # Node ID 282d7683ffee5918ae5ca3b2fc08441888c7c43e # Parent 3c7aa9d4dfc42742f6e9a59b9c9d7794b7a0ac31 sfex: enable the log output of the sfex library in the sfex_init command diff -r 3c7aa9d4dfc4 -r 282d7683ffee tools/sfex_init.c --- a/tools/sfex_init.c Tue Nov 30 17:34:38 2010 +1100 +++ b/tools/sfex_init.c Tue Nov 30 15:48:21 2010 +0900 @@ -57,7 +57,6 @@ #include <string.h> #include <unistd.h> #include <getopt.h> -#include <syslog.h> #include "sfex.h" #include "sfex_lib.h" @@ -101,13 +100,14 @@ * startup process */ -/* - openlog("SFex Init", LOG_PID|LOG_CONS, LOG_USER); -*/ - /* get a program name */ progname = get_progname(argv[0]); + /* enable the cl_log output from the sfex library */ + cl_log_set_entity(progname); + /* The cl_log is output only to the standard error output */ + cl_log_enable_stderr(TRUE); + /* read command line option */ opterr = 0; while (1) {
_______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/