smbd: Use file_id_str_buf() in linux_oplock_signal_handler()
authorVolker Lendecke <vl@samba.org>
Sat, 9 Nov 2019 19:55:29 +0000 (20:55 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Nov 2019 20:56:34 +0000 (20:56 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock_linux.c

index 2a494ea05c111d118ff4443b4194d749a1942887..bc5c08b79319335b3272efa1589411aabc187917 100644 (file)
@@ -140,19 +140,22 @@ static void linux_oplock_signal_handler(struct tevent_context *ev_ctx,
 static bool linux_set_kernel_oplock(struct kernel_oplocks *ctx,
                                    files_struct *fsp, int oplock_type)
 {
+       struct file_id_buf idbuf;
+
        if ( SMB_VFS_LINUX_SETLEASE(fsp, F_WRLCK) == -1) {
-               DEBUG(3,("linux_set_kernel_oplock: Refused oplock on file %s, "
-                        "fd = %d, file_id = %s. (%s)\n",
-                        fsp_str_dbg(fsp), fsp->fh->fd,
-                        file_id_string_tos(&fsp->file_id),
-                        strerror(errno)));
+               DBG_NOTICE("Refused oplock on file %s, "
+                          "fd = %d, file_id = %s. (%s)\n",
+                          fsp_str_dbg(fsp),
+                          fsp->fh->fd,
+                          file_id_str_buf(fsp->file_id, &idbuf),
+                          strerror(errno));
                return False;
        }
        
        DBG_NOTICE("got kernel oplock on file %s, "
                   "file_id = %s gen_id = %"PRIu64"\n",
                   fsp_str_dbg(fsp),
-                  file_id_string_tos(&fsp->file_id),
+                  file_id_str_buf(fsp->file_id, &idbuf),
                   fsp->fh->gen_id);
 
        return True;