Signed-off-by: Angus Salkeld <asalkeld@xxxxxxxxxx> --- exec/main.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/exec/main.c b/exec/main.c index 9ea9c9d..895b4df 100644 --- a/exec/main.c +++ b/exec/main.c @@ -338,9 +338,12 @@ static void member_object_joined (unsigned int nodeid) char member_join_count[ICMAP_KEYNAME_MAXLEN]; char member_status[ICMAP_KEYNAME_MAXLEN]; - snprintf(member_ip, ICMAP_KEYNAME_MAXLEN, "runtime.totem.pg.mrp.srp.members.%u.ip", nodeid); - snprintf(member_join_count, ICMAP_KEYNAME_MAXLEN, "runtime.totem.pg.mrp.srp.members.%u.join_count", nodeid); - snprintf(member_status, ICMAP_KEYNAME_MAXLEN, "runtime.totem.pg.mrp.srp.members.%u.status", nodeid); + snprintf(member_ip, ICMAP_KEYNAME_MAXLEN, + "runtime.totem.pg.mrp.srp.members.%u.ip", nodeid); + snprintf(member_join_count, ICMAP_KEYNAME_MAXLEN, + "runtime.totem.pg.mrp.srp.members.%u.join_count", nodeid); + snprintf(member_status, ICMAP_KEYNAME_MAXLEN, + "runtime.totem.pg.mrp.srp.members.%u.status", nodeid); if (icmap_get(member_ip, NULL, NULL, NULL) == CS_OK) { icmap_inc(member_join_count); @@ -360,8 +363,10 @@ static void member_object_left (unsigned int nodeid) { char member_status[ICMAP_KEYNAME_MAXLEN]; - snprintf(member_status, ICMAP_KEYNAME_MAXLEN, "runtime.totem.pg.mrp.srp.members.%u.status", nodeid); + snprintf(member_status, ICMAP_KEYNAME_MAXLEN, + "runtime.totem.pg.mrp.srp.members.%u.status", nodeid); icmap_set_string(member_status, "left"); + #ifdef HAVE_TESTAGENTS log_printf (LOGSYS_LEVEL_INFO, "Member left: %s", api->totem_ifaces_print (nodeid)); -- 1.7.7.5 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss