From: Volker Lendecke Date: Mon, 4 Nov 2019 06:39:48 +0000 (+0100) Subject: smbd: Use file_id_str_buf() in process_oplock_break_message() X-Git-Tag: talloc-2.3.1~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6018cc5a078fbe042910d6bb07850c21d2ffd923;p=thirdparty%2Fsamba.git smbd: Use file_id_str_buf() in process_oplock_break_message() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index b073c0d04ca..1b3288991fa 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -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; }