]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Modernize a few DEBUGs
authorVolker Lendecke <vl@samba.org>
Mon, 5 Aug 2024 11:45:07 +0000 (13:45 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 27 Aug 2024 07:19:32 +0000 (07:19 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jennifer Sutton <jsutton@samba.org>
source3/smbd/smb2_nttrans.c

index 4bff0e42eac46f51696e1a28b89dbb9c060c7562..916bde53986fa58616a321871bccc863b19f4b15 100644 (file)
@@ -318,9 +318,9 @@ NTSTATUS copy_internals(TALLOC_CTX *ctx,
                goto out;
        }
 
-       DEBUG(10,("copy_internals: doing file copy %s to %s\n",
+       DBG_DEBUG("doing file copy %s to %s\n",
                  smb_fname_str_dbg(smb_fname_src),
-                 smb_fname_str_dbg(smb_fname_dst)));
+                 smb_fname_str_dbg(smb_fname_dst));
 
         status = SMB_VFS_CREATE_FILE(
                conn,                                   /* conn */
@@ -440,9 +440,10 @@ NTSTATUS copy_internals(TALLOC_CTX *ctx,
        }
  out:
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(3,("copy_internals: Error %s copy file %s to %s\n",
-                       nt_errstr(status), smb_fname_str_dbg(smb_fname_src),
-                       smb_fname_str_dbg(smb_fname_dst)));
+               DBG_NOTICE("Error %s copy file %s to %s\n",
+                          nt_errstr(status),
+                          smb_fname_str_dbg(smb_fname_src),
+                          smb_fname_str_dbg(smb_fname_dst));
        }
 
        return status;
@@ -458,7 +459,7 @@ static NTSTATUS get_null_nt_acl(TALLOC_CTX *mem_ctx, struct security_descriptor
 
        *ppsd = make_standard_sec_desc( mem_ctx, &global_sid_World, &global_sid_World, NULL, &sd_size);
        if(!*ppsd) {
-               DEBUG(0,("get_null_nt_acl: Unable to malloc space for security descriptor.\n"));
+               DBG_ERR("Unable to malloc space for security descriptor.\n");
                return NT_STATUS_NO_MEMORY;
        }