From: Volker Lendecke Date: Mon, 27 May 2019 11:49:34 +0000 (+0200) Subject: smbd: Avoid casts in do_unlock() X-Git-Tag: ldb-2.0.5~593 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b478aaf2cf88e8102b334eb5dbe1c44f5d30eb6;p=thirdparty%2Fsamba.git smbd: Avoid casts in do_unlock() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 073651fd841..8deb5279fa4 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -316,9 +316,12 @@ NTSTATUS do_unlock(struct messaging_context *msg_ctx, return NT_STATUS_OK; } - DEBUG(10, ("do_unlock: unlock start=%ju len=%ju requested for %s file " - "%s\n", (uintmax_t)offset, (uintmax_t)count, - fsp_fnum_dbg(fsp), fsp_str_dbg(fsp))); + DBG_DEBUG("unlock start=%"PRIu64" len=%"PRIu64" requested for %s file " + "%s\n", + offset, + count, + fsp_fnum_dbg(fsp), + fsp_str_dbg(fsp)); br_lck = brl_get_locks(talloc_tos(), fsp); if (!br_lck) {