smbd: Use file_id_str_buf() in process_oplock_break_message()
authorVolker Lendecke <vl@samba.org>
Mon, 4 Nov 2019 06:39:48 +0000 (07:39 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 6 Nov 2019 20:36:35 +0000 (20:36 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock.c

index b073c0d04ca130661a2160a18c7c87c0dc5bb7a4..1b3288991fad26e840b14586a30f9ea87032a5b9 100644 (file)
@@ -1039,9 +1039,10 @@ static void process_oplock_break_message(struct messaging_context *msg_ctx,
        }
 
        if ((break_from == SMB2_LEASE_NONE) && !break_needed) {
-               DEBUG(3, ("Already downgraded oplock to none on %s: %s\n",
-                         file_id_string_tos(&fsp->file_id),
-                         fsp_str_dbg(fsp)));
+               struct file_id_buf idbuf;
+               DBG_NOTICE("Already downgraded oplock to none on %s: %s\n",
+                          file_id_str_buf(fsp->file_id, &idbuf),
+                          fsp_str_dbg(fsp));
                return;
        }
 
@@ -1049,10 +1050,11 @@ static void process_oplock_break_message(struct messaging_context *msg_ctx,
                   (unsigned)break_from, (unsigned)break_to));
 
        if ((break_from == break_to) && !break_needed) {
-               DEBUG(3, ("Already downgraded oplock to %u on %s: %s\n",
-                         (unsigned)break_to,
-                         file_id_string_tos(&fsp->file_id),
-                         fsp_str_dbg(fsp)));
+               struct file_id_buf idbuf;
+               DBG_NOTICE("Already downgraded oplock to %u on %s: %s\n",
+                          (unsigned)break_to,
+                          file_id_str_buf(fsp->file_id, &idbuf),
+                          fsp_str_dbg(fsp));
                return;
        }