]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Move to modern debug calls inside do_unlink().
authorJeremy Allison <jra@samba.org>
Fri, 10 Dec 2021 00:11:20 +0000 (16:11 -0800)
committerRalph Boehme <slow@samba.org>
Sat, 11 Dec 2021 07:17:28 +0000 (07:17 +0000)
We will be changing its name next.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index 1285ea536b5ecc91ee4f07010a1117452d781bc2..d15a74ee556ffe0971b7097c32aa9a2792179118 100644 (file)
@@ -3147,9 +3147,9 @@ static NTSTATUS do_unlink(connection_struct *conn,
                dirtype = FILE_ATTRIBUTE_NORMAL;
        }
 
-       DEBUG(10,("do_unlink: %s, dirtype = %d\n",
+       DBG_DEBUG("%s, dirtype = %d\n",
                  smb_fname_str_dbg(smb_fname),
-                 dirtype));
+                 dirtype);
 
        if (!CAN_WRITE(conn)) {
                return NT_STATUS_MEDIA_WRITE_PROTECTED;
@@ -3249,17 +3249,17 @@ static NTSTATUS do_unlink(connection_struct *conn,
        TALLOC_FREE(posx);
 
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(10, ("SMB_VFS_CREATEFILE failed: %s\n",
-                          nt_errstr(status)));
+               DBG_DEBUG("SMB_VFS_CREATEFILE failed: %s\n",
+                          nt_errstr(status));
                return status;
        }
 
        status = can_set_delete_on_close(fsp, fattr);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(10, ("do_unlink can_set_delete_on_close for file %s - "
+               DBG_DEBUG("can_set_delete_on_close for file %s - "
                        "(%s)\n",
                        smb_fname_str_dbg(smb_fname),
-                       nt_errstr(status)));
+                       nt_errstr(status));
                close_file(req, fsp, NORMAL_CLOSE);
                return status;
        }