From 2ae034374ce449c54b1b4ae8350401371db1d8d3 Mon Sep 17 00:00:00 2001 From: Nandaja Varma Date: Mon, 9 Mar 2015 16:59:54 +0530 Subject: glusterd: Porting messages to new logging framework. Change-Id: I56ced6fca0246c230cc389132c47a0f60472ed0c BUG: 1194640 Signed-off-by: Nandaja Varma Reviewed-on: http://review.gluster.org/9836 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee --- xlators/mgmt/glusterd/src/glusterd-nfs-svc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-nfs-svc.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-nfs-svc.c b/xlators/mgmt/glusterd/src/glusterd-nfs-svc.c index cb08a208101..0c4d3c1e903 100644 --- a/xlators/mgmt/glusterd/src/glusterd-nfs-svc.c +++ b/xlators/mgmt/glusterd/src/glusterd-nfs-svc.c @@ -14,6 +14,7 @@ #include "glusterd-utils.h" #include "glusterd-volgen.h" #include "glusterd-nfs-svc.h" +#include "glusterd-messages.h" char *nfs_svc_name = "nfs"; @@ -84,7 +85,8 @@ glusterd_nfssvc_check_volfile_identical (gf_boolean_t *identical) tmp_fd = mkstemp (tmpnfsvol); if (tmp_fd < 0) { - gf_log (this->name, GF_LOG_WARNING, "Unable to create temp file" + gf_msg (this->name, GF_LOG_WARNING, errno, + GD_MSG_FILE_OP_FAILED, "Unable to create temp file" " %s:(%s)", tmpnfsvol, strerror (errno)); goto out; } @@ -136,7 +138,8 @@ glusterd_nfssvc_check_topology_identical (gf_boolean_t *identical) snprintf (tmpnfsvol, sizeof (tmpnfsvol), "/tmp/gnfs-XXXXXX"); tmpfd = mkstemp (tmpnfsvol); if (tmpfd < 0) { - gf_log (this->name, GF_LOG_WARNING, "Unable to create temp file" + gf_msg (this->name, GF_LOG_WARNING, errno, + GD_MSG_FILE_OP_FAILED, "Unable to create temp file" " %s: (%s)", tmpnfsvol, strerror (errno)); goto out; } @@ -182,7 +185,7 @@ glusterd_nfssvc_manager (glusterd_svc_t *svc, void *data, int flags) goto out; } out: - gf_log (THIS->name, GF_LOG_DEBUG, "Returning %d", ret); + gf_msg_debug (THIS->name, 0, "Returning %d", ret); return ret; } @@ -211,7 +214,7 @@ glusterd_nfssvc_stop (glusterd_svc_t *svc, int sig) glusterd_nfs_pmap_deregister (); out: - gf_log (THIS->name, GF_LOG_DEBUG, "Returning %d", ret); + gf_msg_debug (THIS->name, 0, "Returning %d", ret); return ret; } -- cgit