[Openais] [PATCH 6/9] logsys: fix LOGSYS_RECID_MAX calculation
Fabio M. Di Nitto
fdinitto at redhat.com
Wed Jun 17 22:30:50 PDT 2009
Committed as part of revision 2249.
On Wed, 2009-06-17 at 12:53 +0200, Fabio M. Di Nitto wrote:
> Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
> ---
> :100644 100644 5629879... 7a7d78b... M include/corosync/engine/logsys.h
> include/corosync/engine/logsys.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/corosync/engine/logsys.h b/include/corosync/engine/logsys.h
> index 5629879..7a7d78b 100644
> --- a/include/corosync/engine/logsys.h
> +++ b/include/corosync/engine/logsys.h
> @@ -78,7 +78,7 @@ extern "C" {
> * is stored only in the flight recorder.
> */
>
> -#define LOGSYS_RECID_MAX LOGSYS_RECID_RECID_MASK
> +#define LOGSYS_RECID_MAX ((UINT_MAX) >> LOGSYS_SUBSYSID_END)
>
> #define LOGSYS_RECID_LOG LOGSYS_RECID_MAX - 1
> #define LOGSYS_RECID_ENTER LOGSYS_RECID_MAX - 2
More information about the Openais
mailing list