]> git.proxmox.com Git - mirror_corosync.git/commitdiff
totemsrp: Format member list log as unsigned int
authorAndrey N. Groshev <greenx@yandex.ru>
Tue, 3 Mar 2015 02:56:12 +0000 (05:56 +0300)
committerJan Friesse <jfriesse@redhat.com>
Thu, 5 Mar 2015 15:34:07 +0000 (16:34 +0100)
Signed-off-by: Andrey N. Groshev <greenx@yandex.ru>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
exec/totemsrp.c

index b05773a1185839c6be866148292a6a3e534e499f..6357f5abc3424e6a1319a8d439220fb63ed2f987 100644 (file)
@@ -1999,7 +1999,7 @@ static void memb_state_operational_enter (struct totemsrp_instance *instance)
                int sptr = 0;
                sptr += snprintf(joined_node_msg, sizeof(joined_node_msg)-sptr, " joined:");
                for (i=0; i< joined_list_entries; i++) {
-                       sptr += snprintf(joined_node_msg+sptr, sizeof(joined_node_msg)-sptr, " %d", joined_list_totemip[i]);
+                       sptr += snprintf(joined_node_msg+sptr, sizeof(joined_node_msg)-sptr, " %u", joined_list_totemip[i]);
                }
        }
        else {
@@ -2010,7 +2010,7 @@ static void memb_state_operational_enter (struct totemsrp_instance *instance)
                int sptr = 0;
                sptr += snprintf(left_node_msg, sizeof(left_node_msg)-sptr, " left:");
                for (i=0; i< instance->my_left_memb_entries; i++) {
-                       sptr += snprintf(left_node_msg+sptr, sizeof(left_node_msg)-sptr, " %d", left_list[i]);
+                       sptr += snprintf(left_node_msg+sptr, sizeof(left_node_msg)-sptr, " %u", left_list[i]);
                }
        }
        else {