From: Stefan Metzmacher Date: Mon, 11 Nov 2019 13:27:25 +0000 (+0100) Subject: s3:cli_pipe: improve debug messages in cli_rpc_pipe_open_with_creds() X-Git-Tag: ldb-2.2.0~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee4eab14f16f967188a1e68fcf27e8e9fd653eeb;p=thirdparty%2Fsamba.git s3:cli_pipe: improve debug messages in cli_rpc_pipe_open_with_creds() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 11bb5414bc4..f67869ffd50 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -3188,7 +3188,6 @@ NTSTATUS cli_rpc_pipe_open_with_creds(struct cli_state *cli, struct rpc_pipe_client *result; struct pipe_auth_data *auth = NULL; const char *target_service = table->authservices->names[0]; - NTSTATUS status; status = cli_rpc_pipe_open(cli, transport, table, &result); @@ -3202,21 +3201,22 @@ NTSTATUS cli_rpc_pipe_open_with_creds(struct cli_state *cli, creds, &auth); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("rpccli_generic_bind_data returned %s\n", - nt_errstr(status))); + DBG_ERR("rpccli_generic_bind_data_from_creds returned %s\n", + nt_errstr(status)); goto err; } status = rpc_pipe_bind(result, auth); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("cli_rpc_pipe_open_generic_auth: cli_rpc_pipe_bind failed with error %s\n", - nt_errstr(status) )); + DBG_ERR("cli_rpc_pipe_bind failed with error %s\n", + nt_errstr(status)); goto err; } - DEBUG(10,("cli_rpc_pipe_open_generic_auth: opened pipe %s to " - "machine %s and bound as user %s.\n", table->name, - result->desthost, cli_credentials_get_unparsed_name(creds, talloc_tos()))); + DBG_DEBUG("opened pipe %s to machine %s and bound as user %s.\n", + table->name, + result->desthost, + cli_credentials_get_unparsed_name(creds, talloc_tos())); *presult = result; return NT_STATUS_OK;