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>
This commit is contained in:
parent
09baa5d7fb
commit
777412c5e8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user