On 06/01/2011 09:14 AM, Jan Friesse wrote:
> Signed-off-by: Jan Friesse <[email protected]>
> ---
>  exec/mainconfig.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/exec/mainconfig.c b/exec/mainconfig.c
> index 44bd47a..c7df8c6 100644
> --- a/exec/mainconfig.c
> +++ b/exec/mainconfig.c
> @@ -614,7 +614,9 @@ static void 
> main_objdb_reload_notify(objdb_reload_notify_type_t type, int flush,
>               /*
>                * Reload the logsys configuration
>                */
> -             logsys_format_set(NULL);
> +             if (logsys_format_set(NULL) < 0) {
> +                     fprintf (stderr, "Unable to setup logging format.\n");
> +             }
>               corosync_main_config_read_logging(global_objdb,
>                                                 &error_string);
>       }


please check for == -1 rather then < 0.

Regards
-steve
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to