summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-helpers.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2016-10-18 15:16:17 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-11-18 01:56:39 -0800
commit5310be8838f8db748a698bd3a98f8d00a4114e65 (patch)
treedcfdf14c322d8731cec0eafc7aa24bf1abbf6629 /xlators/storage/posix/src/posix-helpers.c
parent2f70f47979d204d5ee29811f5f5fa61d0a52c3b1 (diff)
events: Add FMT_WARN for gf_event
Raghavendra G found that posix is trying to print %s but passing an int when HEALTH_CHECK fails in posix. These are the kind of bugs that should be caught at compilation itself. Also fixed the problematic gf_event() callers. BUG: 1386097 Change-Id: Id7bd6d9a9690237cec3ca1aefa2aac085e8a1270 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/15671 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/storage/posix/src/posix-helpers.c')
-rw-r--r--xlators/storage/posix/src/posix-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index caa79bf5815..0af586e7777 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -1769,7 +1769,7 @@ out:
"%s() on %s returned", op, file_path);
gf_event (EVENT_POSIX_HEALTH_CHECK_FAILED,
"op=%s;path=%s;error=%s;brick=%s:%s", op, file_path,
- op_errno, priv->hostname, priv->base_path);
+ strerror (op_errno), priv->hostname, priv->base_path);
}
return ret;