diff options
author | arao <arao@redhat.com> | 2015-03-06 12:33:05 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-06-27 05:25:05 -0700 |
commit | 58a736111fa1db4f10c6646e81066434260f674f (patch) | |
tree | 98b40c45c6510c0ca9a9a33062b46b0411815556 /xlators/cluster/afr/src/afr-open.c | |
parent | 7a3736b4a46dd07d65e27d892a85299a37fdd9a2 (diff) |
afr: Porting messages to new logging framework
updated
Change-Id: I94ac7b2cb0d43a82cf0eeee21407cff9b575c458
BUG: 1194640
Signed-off-by: arao <arao@redhat.com>
Signed-off-by: Mohamed Ashiq <mliyazud@redhat.com>
Reviewed-on: http://review.gluster.org/9897
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-open.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-open.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/xlators/cluster/afr/src/afr-open.c b/xlators/cluster/afr/src/afr-open.c index ebfadf40e5c..059d3f9bd71 100644 --- a/xlators/cluster/afr/src/afr-open.c +++ b/xlators/cluster/afr/src/afr-open.c @@ -177,9 +177,9 @@ afr_openfd_fix_open_cbk (call_frame_t *frame, void *cookie, xlator_t *this, local = frame->local; if (op_ret >= 0) { - gf_log (this->name, GF_LOG_DEBUG, "fd for %s opened " - "successfully on subvolume %s", local->loc.path, - priv->children[child_index]->name); + gf_msg_debug (this->name, 0, "fd for %s opened " + "successfully on subvolume %s", local->loc.path, + priv->children[child_index]->name); } else { gf_msg (this->name, fop_log_level (GF_FOP_OPEN, op_errno), op_errno, AFR_MSG_OPEN_FAIL, "Failed to open %s on " @@ -286,17 +286,17 @@ afr_fix_open (fd_t *fd, xlator_t *this) local->call_count = call_count; - gf_log (this->name, GF_LOG_DEBUG, "need open count: %d", - call_count); + gf_msg_debug (this->name, 0, "need open count: %d", + call_count); for (i = 0; i < priv->child_count; i++) { if (!need_open[i]) continue; if (IA_IFDIR == fd->inode->ia_type) { - gf_log (this->name, GF_LOG_DEBUG, - "opening fd for dir %s on subvolume %s", - local->loc.path, priv->children[i]->name); + gf_msg_debug (this->name, 0, + "opening fd for dir %s on subvolume %s", + local->loc.path, priv->children[i]->name); STACK_WIND_COOKIE (frame, afr_openfd_fix_open_cbk, (void*) (long) i, @@ -305,9 +305,9 @@ afr_fix_open (fd_t *fd, xlator_t *this) &local->loc, local->fd, NULL); } else { - gf_log (this->name, GF_LOG_DEBUG, - "opening fd for file %s on subvolume %s", - local->loc.path, priv->children[i]->name); + gf_msg_debug (this->name, 0, + "opening fd for file %s on subvolume %s", + local->loc.path, priv->children[i]->name); STACK_WIND_COOKIE (frame, afr_openfd_fix_open_cbk, (void *)(long) i, |