vfs_fruit: fix some debug messages
authorRalph Boehme <slow@samba.org>
Fri, 11 Dec 2015 16:27:50 +0000 (17:27 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 21 Dec 2015 22:21:17 +0000 (23:21 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347

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

index e9a54b04e241da7647f693a9a26145e73723bc52..3d3d6d460fda7da9ec6737cba8c3dfa8c5df0ff3 100644 (file)
@@ -2455,7 +2455,7 @@ static int fruit_unlink(vfs_handle_struct *handle,
                }
 
                /* FIXME: direct unlink(), missing smb_fname */
-               DEBUG(1,("fruit_unlink: %s\n", adp));
+               DBG_DEBUG("fruit_unlink: %s\n", adp);
                rc = unlink(adp);
                if ((rc == -1) && (errno == ENOENT)) {
                        rc = 0;
@@ -3319,8 +3319,8 @@ static int fruit_ftruncate(struct vfs_handle_struct *handle,
         struct adouble *ad =
                (struct adouble *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
 
-       DEBUG(10, ("streams_xattr_ftruncate called for file %s offset %.0f\n",
-                  fsp_str_dbg(fsp), (double)offset));
+       DBG_DEBUG("fruit_ftruncate called for file %s offset %.0f\n",
+                  fsp_str_dbg(fsp), (double)offset);
 
        if (ad == NULL) {
                return SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset);
@@ -3601,7 +3601,7 @@ static NTSTATUS fruit_fset_nt_acl(vfs_handle_struct *handle,
        mode_t ms_nfs_mode;
        int result;
 
-       DEBUG(1, ("fruit_fset_nt_acl: %s\n", fsp_str_dbg(fsp)));
+       DBG_DEBUG("fruit_fset_nt_acl: %s\n", fsp_str_dbg(fsp));
 
        status = check_ms_nfs(handle, fsp, psd, &ms_nfs_mode, &do_chmod);
        if (!NT_STATUS_IS_OK(status)) {
@@ -3617,10 +3617,8 @@ static NTSTATUS fruit_fset_nt_acl(vfs_handle_struct *handle,
 
        if (do_chmod) {
                if (fsp->fh->fd != -1) {
-                       DEBUG(1, ("fchmod: %s\n", fsp_str_dbg(fsp)));
                        result = SMB_VFS_FCHMOD(fsp, ms_nfs_mode);
                } else {
-                       DEBUG(1, ("chmod: %s\n", fsp_str_dbg(fsp)));
                        result = SMB_VFS_CHMOD(fsp->conn,
                                               fsp->fsp_name->base_name,
                                               ms_nfs_mode);