summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/options.c
diff options
context:
space:
mode:
authorSheetal Pamecha <sheetal.pamecha08@gmail.com>2018-10-11 04:00:08 +0530
committerSunny Kumar <sunkumar@redhat.com>2018-10-12 11:16:20 +0000
commit777412c5e8a1e8613061fef31bd8a60d4cd54b6e (patch)
tree7924bdfa1ae30c7069881f09b7bf06e05d7c1aed /libglusterfs/src/options.c
parent09baa5d7fb91d1f50976807f1da0f7bbf177fa00 (diff)
libglusterfs: fix log message in options.c
This patch fixes https://github.com/gluster/glusterfs/issues/519 Credits: "Fabian Wannenmacher <@wanneut>" Updates: bz#1193929 Change-Id: If8d60c3379093a868ad6ba8c2ad86a4b99d35f2c Signed-off-by: Sheetal Pamecha <sheetal.pamecha08@gmail.com>
Diffstat (limited to 'libglusterfs/src/options.c')
-rw-r--r--libglusterfs/src/options.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libglusterfs/src/options.c b/libglusterfs/src/options.c
index c95808bcb28..601baf9004f 100644
--- a/libglusterfs/src/options.c
+++ b/libglusterfs/src/options.c
@@ -552,10 +552,8 @@ xlator_option_validate_addr(xlator_t *xl, const char *key, const char *value,
char errstr[256];
if (!valid_internet_address((char *)value, _gf_false)) {
- snprintf(errstr, 256,
- "option %s %s: '%s' is not a valid internet-address,"
- " it does not conform to standards.",
- key, value, value);
+ snprintf(errstr, 256, "option %s %s: Can not parse %s address", key,
+ value, value);
gf_msg(xl->name, GF_LOG_ERROR, 0, LG_MSG_INVALID_ENTRY, "%s", errstr);
if (op_errstr)
*op_errstr = gf_strdup(errstr);