diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2012-04-02 14:57:20 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-04-02 02:42:03 -0700 |
commit | dc2a52fa0d83ba2e807a175655fc0362b707a22d (patch) | |
tree | e12edf604554bfac40b2f51356d732d6eb0e2de2 /xlators | |
parent | e51f690d7c5eda400316ba97ab2f4ce448b51e7d (diff) |
nlm: print the reason of failure when clnt_create fails to create the client object
Change-Id: Icc271e2166dbccc2cc12029e26c674fdb79fe975
BUG: 808390
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Reviewed-on: http://review.gluster.com/3061
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/nfs/server/src/nlm4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nlm4.c b/xlators/nfs/server/src/nlm4.c index b54e14b1..03257806 100644 --- a/xlators/nfs/server/src/nlm4.c +++ b/xlators/nfs/server/src/nlm4.c @@ -487,7 +487,8 @@ int nsm_monitor(char *host) clnt = clnt_create("localhost", SM_PROG, SM_VERS, "tcp"); if(!clnt) { - gf_log (GF_NLM, GF_LOG_ERROR, "Clnt_create()"); + gf_log (GF_NLM, GF_LOG_ERROR, "%s", + clnt_spcreateerror ("Clnt_create()")); goto out; } |