diff options
| -rw-r--r-- | cli/src/cli-rpc-ops.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 0f57d94b506..3205f2895b1 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -158,9 +158,9 @@ gf_cli_probe_cbk(struct rpc_req *req, struct iovec *iov, int count,      gf_log("cli", GF_LOG_INFO, "Received resp to probe"); -    if (rsp.op_ret) { -        if (rsp.op_errstr && rsp.op_errstr[0] != '\0') { -            snprintf(msg, sizeof(msg), "%s", rsp.op_errstr); +    if (rsp.op_errstr && rsp.op_errstr[0] != '\0') { +        snprintf(msg, sizeof(msg), "%s", rsp.op_errstr); +        if (rsp.op_ret) {              gf_log("cli", GF_LOG_ERROR, "%s", msg);          }      }  | 
