summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/fd.c
diff options
context:
space:
mode:
authorMohamed Ashiq Liyazudeen <mliyazud@redhat.com>2015-06-30 14:47:22 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-07-09 00:22:20 -0700
commit9384a824041aeef0e58644cc9fe71dc7fa13eb35 (patch)
treecd48b79bdd98b1a12bd9e88d575066afee659fd7 /libglusterfs/src/fd.c
parent32207db25eea821dfb1abd033df1013d4b8fc622 (diff)
libglusterfs removing strerror in logging
Change-Id: I8a0f40834da1151ddaef6139af3782bc076df57e BUG: 1194640 Signed-off-by: Mohamed Ashiq Liyazudeen <mliyazud@redhat.com> Reviewed-on: http://review.gluster.org/11464 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 'libglusterfs/src/fd.c')
-rw-r--r--libglusterfs/src/fd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c
index 0b1229aac7e..7377b1e30bd 100644
--- a/libglusterfs/src/fd.c
+++ b/libglusterfs/src/fd.c
@@ -281,10 +281,9 @@ gf_fd_unused_get (fdtable_t *fdtable, fd_t *fdptr)
error = gf_fd_fdtable_expand (fdtable,
fdtable->max_fds + 1);
if (error) {
- gf_msg ("fd", GF_LOG_ERROR, 0,
+ gf_msg ("fd", GF_LOG_ERROR, error,
LG_MSG_EXPAND_FD_TABLE_FAILED,
- "Cannot expand fdtable: %s",
- strerror (error));
+ "Cannot expand fdtable");
goto out;
}
++alloc_attempts;