From: Ralph Boehme Date: Tue, 13 Aug 2019 12:11:23 +0000 (+0200) Subject: s3:mdssvc: modernize a few DEBUG macros X-Git-Tag: talloc-2.3.1~446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba899694e45aa2e691cf44098846fc0ddf3e79fd;p=thirdparty%2Fsamba.git s3:mdssvc: modernize a few DEBUG macros Signed-off-by: Ralph Boehme Reviewed-by: Noel Power --- diff --git a/source3/rpc_server/mdssvc/srv_mdssvc_nt.c b/source3/rpc_server/mdssvc/srv_mdssvc_nt.c index 4c252ceadc5..84534ccda2e 100644 --- a/source3/rpc_server/mdssvc/srv_mdssvc_nt.c +++ b/source3/rpc_server/mdssvc/srv_mdssvc_nt.c @@ -306,7 +306,7 @@ void _mdssvc_close(struct pipes_struct *p, struct mdssvc_close *r) struct mds_ctx *mds_ctx; if (!find_policy_by_hnd(p, &r->in.in_handle, (void **)(void *)&mds_ctx)) { - DEBUG(1, ("%s: invalid handle\n", __func__)); + DBG_WARNING("invalid handle\n"); if (is_zero_policy_handle(&r->in.in_handle)) { p->fault_state = 0; } else { @@ -315,7 +315,7 @@ void _mdssvc_close(struct pipes_struct *p, struct mdssvc_close *r) return; } - DEBUG(10, ("%s: path: %s\n", __func__, mds_ctx->spath)); + DBG_DEBUG("Close mdssvc handle for path: %s\n", mds_ctx->spath); *r->out.out_handle = r->in.in_handle; close_policy_hnd(p, &r->in.in_handle);