From dc2a52fa0d83ba2e807a175655fc0362b707a22d Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 2 Apr 2012 14:57:20 +0530 Subject: 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 Reviewed-on: http://review.gluster.com/3061 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/nfs/server/src/nlm4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/nfs/server') diff --git a/xlators/nfs/server/src/nlm4.c b/xlators/nfs/server/src/nlm4.c index b54e14b10..03257806e 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; } -- cgit