[Cluster-devel] [PATCH] rgmanager: Make command line debug work
Fabio M. Di Nitto
fdinitto at redhat.com
Tue Mar 31 05:18:20 UTC 2009
Looks ok.
On Mon, 2009-03-30 at 17:13 -0400, Lon Hohberger wrote:
> Signed-off-by: Lon Hohberger <lhh at 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];
>
More information about the Cluster-devel
mailing list