diff options
author | Mohamed Ashiq Liyazudeen <mliyazud@redhat.com> | 2015-06-30 14:47:22 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-07-09 00:22:20 -0700 |
commit | 9384a824041aeef0e58644cc9fe71dc7fa13eb35 (patch) | |
tree | cd48b79bdd98b1a12bd9e88d575066afee659fd7 /libglusterfs/src/syncop.c | |
parent | 32207db25eea821dfb1abd033df1013d4b8fc622 (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/syncop.c')
-rw-r--r-- | libglusterfs/src/syncop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index 695f04b2a31..f56a21d11b9 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -337,8 +337,7 @@ synctask_yield (struct synctask *task) } if (swapcontext (&task->ctx, &task->proc->sched) < 0) { gf_msg ("syncop", GF_LOG_ERROR, errno, - LG_MSG_SWAPCONTEXT_FAILED, "swapcontext failed (%s)", - strerror (errno)); + LG_MSG_SWAPCONTEXT_FAILED, "swapcontext failed"); } THIS = oldTHIS; @@ -490,8 +489,7 @@ synctask_create (struct syncenv *env, synctask_fn_t fn, synctask_cbk_t cbk, if (getcontext (&newtask->ctx) < 0) { gf_msg ("syncop", GF_LOG_ERROR, errno, - LG_MSG_GETCONTEXT_FAILED, "getcontext failed (%s)", - strerror (errno)); + LG_MSG_GETCONTEXT_FAILED, "getcontext failed"); goto err; } |