[sheepdog] [PATCH 05/14] collie: don't use a negative value for a zone id

MORITA Kazutaka morita.kazutaka at gmail.com
Sat Aug 10 17:58:46 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 collie/node.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/collie/node.c b/collie/node.c
index 586ca68..79d4066 100644
--- a/collie/node.c
+++ b/collie/node.c
@@ -38,7 +38,7 @@ static int node_list(int argc, char **argv)
 		addr_to_str(data, sizeof(data), sd_nodes[i].nid.addr,
 			    sd_nodes[i].nid.port);
 
-		printf(raw_output ? "%d %s %d %d\n" : "%4d   %-20s\t%2d%11d\n",
+		printf(raw_output ? "%d %s %d %u\n" : "%4d   %-20s\t%2d%11u\n",
 		       i, data, sd_nodes[i].nr_vnodes, sd_nodes[i].zone);
 	}
 
-- 
1.7.9.5




More information about the sheepdog mailing list