]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:mdssvc: modernize a few DEBUG macros
authorRalph Boehme <slow@samba.org>
Tue, 13 Aug 2019 12:11:23 +0000 (14:11 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 9 Oct 2019 14:35:29 +0000 (14:35 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
source3/rpc_server/mdssvc/srv_mdssvc_nt.c

index 4c252ceadc56c08e50c9e08bc89e764fe4ef7eb8..84534ccda2ee53534d7393a5a4b8dc6773c19bbe 100644 (file)
@@ -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);