From 07c11798ed219c7d8484d4c1f4729cd83cd4a09e Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 6 Sep 2017 14:35:39 +0200 Subject: Fix clang/gcc warning -Wformat-extra-args umountd.c:59:61: warning: data argument not used by format string [-Wformat-extra-args] "Cannot access %s\n", path, strerror (errno)); Change-Id: If1622d5b806ce6795ad2f84f2f2874227811dd96 BUG: 1488906 Signed-off-by: Michael Scherer Reviewed-on: https://review.gluster.org/18219 Smoke: Gluster Build System Tested-by: Michael Scherer CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- contrib/umountd/umountd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'contrib/umountd') diff --git a/contrib/umountd/umountd.c b/contrib/umountd/umountd.c index 0d2c6f20b60..c06dd54db6e 100644 --- a/contrib/umountd/umountd.c +++ b/contrib/umountd/umountd.c @@ -56,7 +56,8 @@ sanity_check (char *path, dev_t *devp) break; default: gf_log ("umountd", GF_LOG_ERROR, - "Cannot access %s\n", path, strerror (errno)); + "Cannot access %s: %s\n", + path, strerror (errno)); goto out; } } @@ -70,7 +71,8 @@ sanity_check (char *path, dev_t *devp) if (stat (parent, &parent_st) != 0) { gf_log ("umountd", GF_LOG_ERROR, - "Cannot access %s\n", parent, strerror (errno)); + "Cannot access %s: %s\n", + parent, strerror (errno)); goto out; } -- cgit