summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2010-10-08 00:19:17 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-08 04:28:51 -0700
commitce616c5fa08722044ee311f5f6c7c4e3ccb684c4 (patch)
tree6b20b2bf93b623d5355c0cd39e334faacb10c0c7 /xlators/mgmt/glusterd/src/glusterd-utils.c
parent99b04920189df06cfd8704a773c51cdb995b7ae0 (diff)
mgmt/glusterd: print state, event names for numbers in friend sm
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1847 (print event names, state names instead of numbers for FSMs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1847
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 2e219a2618d..c7018cde86f 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -2080,8 +2080,8 @@ glusterd_friend_find_by_uuid (uuid_t uuid,
if (!uuid_compare (entry->uuid, uuid)) {
gf_log ("glusterd", GF_LOG_NORMAL,
- "Friend found.. state: %d",
- entry->state.state);
+ "Friend found.. state: %s",
+ glusterd_friend_sm_state_name_get (entry->state.state));
*peerinfo = entry;
return 0;
}