summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-02-17 15:50:54 +0530
committerKaushal M <kaushal@redhat.com>2015-02-17 22:31:08 -0800
commit554823cd784b0afb37da68e71e7fc63643b644dc (patch)
tree8677700bc1bf88cee70014f923a8ccf2c8e31a4d /xlators/mgmt
parentabcb2017b07b0706aef0d9eeb729115ca605ad6d (diff)
glusterd: Use correct format specifier for dumping peer hostname
Change-Id: Ifdde4f8256fa463472959078f53d033e5c55207e BUG: 1139682 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/9665 Reviewed-by: Anand Nekkunti <anekkunt@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-statedump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-statedump.c b/xlators/mgmt/glusterd/src/glusterd-statedump.c
index e28624c6955..c7ee70df25b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-statedump.c
+++ b/xlators/mgmt/glusterd/src/glusterd-statedump.c
@@ -35,7 +35,7 @@ glusterd_dump_peer (glusterd_peerinfo_t *peerinfo, char *input_key, int index,
uuid_utoa (peerinfo->uuid));
gf_proc_dump_build_key (key, subkey, "hostname");
- gf_proc_dump_write (key, "%d", peerinfo->hostname);
+ gf_proc_dump_write (key, "%s", peerinfo->hostname);
gf_proc_dump_build_key (key, subkey, "port");
gf_proc_dump_write (key, "%d", peerinfo->port);