Merge pull request #123 from plieven/fix_rpc_error

init: do not write to stderr in rpc_set_error
libnfs-4.0.0-vitalif
Ronnie Sahlberg 2015-08-06 05:40:42 -07:00
commit cc69b9c189
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ void rpc_set_error(struct rpc_context *rpc, const char *error_string, ...)
vsnprintf(rpc->error_string, 1024, error_string, ap);
va_end(ap);
fprintf(stderr, "libnfs error: %s\n", rpc->error_string);
RPC_LOG(rpc, 1, "error: %s", rpc->error_string);
if (old_error_string != NULL) {
free(old_error_string);