From: Jeremy Allison Date: Fri, 10 Dec 2021 00:11:20 +0000 (-0800) Subject: s3: smbd: Move to modern debug calls inside do_unlink(). X-Git-Tag: tdb-1.4.6~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e60360c4868190633debc6bc31b98af2b74ad7cd;p=thirdparty%2Fsamba.git s3: smbd: Move to modern debug calls inside do_unlink(). We will be changing its name next. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 1285ea536b5..d15a74ee556 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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; }