[Openais] [PATCH 6/9] logsys: fix LOGSYS_RECID_MAX calculation
Steven Dake
sdake at redhat.com
Wed Jun 17 08:49:05 PDT 2009
I noticed in this patch LOGSYS_RECID_MAX - 1 without parens. Must have
missed seeing that in previous patch.
This patch has same issue as 5/9 though but looks fine after that fix
regards
-steve
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