From 8b478aaf2cf88e8102b334eb5dbe1c44f5d30eb6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 27 May 2019 13:49:34 +0200 Subject: [PATCH] smbd: Avoid casts in do_unlock() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/locking/locking.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) { -- 2.34.1