vfs: fix lock logging in vfs_full_audit
authorDavid Disseldorp <ddiss@samba.org>
Thu, 20 Sep 2012 06:20:57 +0000 (08:20 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Thu, 20 Sep 2012 17:02:53 +0000 (19:02 +0200)
source3/modules/vfs_full_audit.c

index 392baeadd0a299cf238c0c7b9585f1ba5bc63d8c..7f8159f452920fe726b26ea69f19e2ab4f3f3d69 100644 (file)
@@ -1649,7 +1649,7 @@ static NTSTATUS smb_full_audit_brl_lock_windows(struct vfs_handle_struct *handle
 
        do_log(SMB_VFS_OP_BRL_LOCK_WINDOWS, NT_STATUS_IS_OK(result), handle,
            "%s:%llu-%llu. type=%d. blocking=%d", fsp_str_do_log(br_lck->fsp),
-           plock->start, plock->size, plock->lock_type, blocking_lock );
+           plock->start, plock->size, plock->lock_type, blocking_lock);
 
        return result;
 }
@@ -1682,7 +1682,7 @@ static bool smb_full_audit_brl_cancel_windows(struct vfs_handle_struct *handle,
 
        do_log(SMB_VFS_OP_BRL_CANCEL_WINDOWS, (result == 0), handle,
            "%s:%llu-%llu:%d", fsp_str_do_log(br_lck->fsp), plock->start,
-           plock->size);
+           plock->size, plock->lock_type);
 
        return result;
 }
@@ -1697,7 +1697,7 @@ static bool smb_full_audit_strict_lock(struct vfs_handle_struct *handle,
 
        do_log(SMB_VFS_OP_STRICT_LOCK, result, handle,
            "%s:%llu-%llu:%d", fsp_str_do_log(fsp), plock->start,
-           plock->size);
+           plock->size, plock->lock_type);
 
        return result;
 }
@@ -1710,7 +1710,7 @@ static void smb_full_audit_strict_unlock(struct vfs_handle_struct *handle,
 
        do_log(SMB_VFS_OP_STRICT_UNLOCK, true, handle,
            "%s:%llu-%llu:%d", fsp_str_do_log(fsp), plock->start,
-           plock->size);
+           plock->size, plock->lock_type);
 }
 
 static NTSTATUS smb_full_audit_translate_name(struct vfs_handle_struct *handle,