diff options
author | Michael Scherer <misc@redhat.com> | 2017-09-06 14:35:39 +0200 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-09-07 16:52:38 +0000 |
commit | 07c11798ed219c7d8484d4c1f4729cd83cd4a09e (patch) | |
tree | e94d7907fc76c801a12476b260347aa864640fa7 /contrib | |
parent | eb2f1ab4cd2f4805117c590d2f020b36ea778c7e (diff) |
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 <misc@redhat.com>
Reviewed-on: https://review.gluster.org/18219
Smoke: Gluster Build System <jenkins@build.gluster.org>
Tested-by: Michael Scherer <misc@fedoraproject.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/umountd/umountd.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |