On Wed, Aug 17, 2011 at 12:44:36PM +1200, Tim Beale wrote:
> Ring ID was being displayed both as hex and decimal in places. Update so
> it's displayed consistently (I chose hex) to make debugging easier.
Thanks, applied (with some line number changes).
-Angus
> ---
>
> exec/totemsrp.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/exec/totemsrp.c b/exec/totemsrp.c
> index 881a457..14625b1 100644
> --- a/exec/totemsrp.c
> +++ b/exec/totemsrp.c
> @@ -2059,7 +2059,7 @@ static void memb_state_recovery_enter (
> log_printf (instance->totemsrp_log_level_debug,
> "position [%d] member %s:\n", i, totemip_print
> (&addr[i].addr[0]));
> log_printf (instance->totemsrp_log_level_debug,
> - "previous ring seq %lld rep %s\n",
> + "previous ring seq %llx rep %s\n",
> memb_list[i].ring_id.seq,
> totemip_print (&memb_list[i].ring_id.rep));
>
> @@ -4555,7 +4555,7 @@ void main_iface_change_fn (
> memb_ring_id_create_or_load (instance, &instance->my_ring_id);
> log_printf (
> instance->totemsrp_log_level_debug,
> - "Created or loaded sequence id %lld.%s for this
> ring.\n",
> + "Created or loaded sequence id %llx.%s for this
> ring.\n",
> instance->my_ring_id.seq,
> totemip_print (&instance->my_ring_id.rep));
> for (i = 0; i <
> instance->totem_config->interfaces[iface_no].member_count; i++) {
> From: Tim Beale <[email protected]>
>
> Display ring-ID consistently in debug
>
> Ring ID was being displayed both as hex and decimal in places. Update so
> it's displayed consistently (I chose hex) to make debugging easier.
> ---
>
> exec/totemsrp.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/exec/totemsrp.c b/exec/totemsrp.c
> index 881a457..14625b1 100644
> --- a/exec/totemsrp.c
> +++ b/exec/totemsrp.c
> @@ -2059,7 +2059,7 @@ static void memb_state_recovery_enter (
> log_printf (instance->totemsrp_log_level_debug,
> "position [%d] member %s:\n", i, totemip_print
> (&addr[i].addr[0]));
> log_printf (instance->totemsrp_log_level_debug,
> - "previous ring seq %lld rep %s\n",
> + "previous ring seq %llx rep %s\n",
> memb_list[i].ring_id.seq,
> totemip_print (&memb_list[i].ring_id.rep));
>
> @@ -4555,7 +4555,7 @@ void main_iface_change_fn (
> memb_ring_id_create_or_load (instance, &instance->my_ring_id);
> log_printf (
> instance->totemsrp_log_level_debug,
> - "Created or loaded sequence id %lld.%s for this
> ring.\n",
> + "Created or loaded sequence id %llx.%s for this
> ring.\n",
> instance->my_ring_id.seq,
> totemip_print (&instance->my_ring_id.rep));
> for (i = 0; i <
> instance->totem_config->interfaces[iface_no].member_count; i++) {
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais