]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Avoid casts in smb_set_posix_lock()
authorVolker Lendecke <vl@samba.org>
Thu, 13 Jun 2019 19:12:59 +0000 (12:12 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 20 Jun 2019 17:18:17 +0000 (17:18 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c

index 26f96f564eb8e2ba7a1e8b854001c69b11ce4dce..71d990314e3b845a332f953993c4916ecd36078f 100644 (file)
@@ -7326,13 +7326,13 @@ static NTSTATUS smb_set_posix_lock(connection_struct *conn,
        count = (((uint64_t) IVAL(pdata,(POSIX_LOCK_LEN_OFFSET+4))) << 32) |
                        ((uint64_t) IVAL(pdata,POSIX_LOCK_LEN_OFFSET));
 
-       DEBUG(10,("smb_set_posix_lock: file %s, lock_type = %u,"
-                       "smblctx = %llu, count = %.0f, offset = %.0f\n",
-               fsp_str_dbg(fsp),
-               (unsigned int)lock_type,
-               (unsigned long long)smblctx,
-               (double)count,
-               (double)offset ));
+       DBG_DEBUG("file %s, lock_type = %u, smblctx = %"PRIu64", "
+                 "count = %"PRIu64", offset = %"PRIu64"\n",
+                 fsp_str_dbg(fsp),
+                 (unsigned int)lock_type,
+                 smblctx,
+                 count,
+                 offset);
 
        if (lock_type == UNLOCK_LOCK) {
                status = do_unlock(req->sconn->msg_ctx,