From: Volker Lendecke Date: Mon, 27 May 2019 14:15:17 +0000 (+0200) Subject: smbd: Avoid casts in smbd_smb2_lock_send() X-Git-Tag: ldb-2.0.5~592 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a93fc686fafe4ffbe72271f4093bde6aa607b2a;p=thirdparty%2Fsamba.git smbd: Avoid casts in smbd_smb2_lock_send() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c index 5aa0d657cfb..ae845d44387 100644 --- a/source3/smbd/smb2_lock.c +++ b/source3/smbd/smb2_lock.c @@ -335,13 +335,13 @@ static struct tevent_req *smbd_smb2_lock_send(TALLOC_CTX *mem_ctx, locks[i].brltype = UNLOCK_LOCK; } - DEBUG(10,("smbd_smb2_lock_send: index %d offset=%llu, count=%llu, " - "smblctx = %llu type %d\n", - i, - (unsigned long long)locks[i].offset, - (unsigned long long)locks[i].count, - (unsigned long long)locks[i].smblctx, - (int)locks[i].brltype )); + DBG_DEBUG("index %"PRIu16" offset=%"PRIu64", count=%"PRIu64", " + "smblctx = %"PRIu64" type %d\n", + i, + locks[i].offset, + locks[i].count, + locks[i].smblctx, + (int)locks[i].brltype); } state->locks = locks;