From: Volker Lendecke Date: Mon, 1 Jul 2019 12:23:27 +0000 (+0200) Subject: smbd: Avoid casts in do_lock() X-Git-Tag: ldb-2.0.5~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0d4939d6ca09c4617089f81a213b9390fc2da49;p=thirdparty%2Fsamba.git smbd: Avoid casts in do_lock() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index c186312f93f..7e5807f306d 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -264,11 +264,15 @@ struct byte_range_lock *do_lock(struct messaging_context *msg_ctx, /* NOTE! 0 byte long ranges ARE allowed and should be stored */ - DEBUG(10,("do_lock: lock flavour %s lock type %s start=%ju len=%ju " - "blocking_lock=%s requested for %s file %s\n", - lock_flav_name(lock_flav), lock_type_name(lock_type), - (uintmax_t)offset, (uintmax_t)count, blocking_lock ? "true" : - "false", fsp_fnum_dbg(fsp), fsp_str_dbg(fsp))); + DBG_DEBUG("lock flavour %s lock type %s start=%"PRIu64" len=%"PRIu64" " + "blocking_lock=%s requested for %s file %s\n", + lock_flav_name(lock_flav), + lock_type_name(lock_type), + offset, + count, + blocking_lock ? "true" : "false", + fsp_fnum_dbg(fsp), + fsp_str_dbg(fsp)); br_lck = brl_get_locks(talloc_tos(), fsp); if (!br_lck) {