smbd: Avoid casts in smbd_do_unlocking()
authorVolker Lendecke <vl@samba.org>
Mon, 27 May 2019 11:45:59 +0000 (13:45 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 28 May 2019 20:27:16 +0000 (20:27 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index 48042f84a733c586e489d00a5d2afed06b4cd487..88823ae31c9de89407cf7b0bb648c938fbd1094a 100644 (file)
@@ -8280,12 +8280,12 @@ NTSTATUS smbd_do_unlocking(struct smb_request *req,
                struct smbd_lock_element *e = &ulocks[i];
                NTSTATUS status;
 
-               DEBUG(10,("%s: unlock start=%.0f, len=%.0f for "
-                         "pid %u, file %s\n", __func__,
-                         (double)e->offset,
-                         (double)e->count,
-                         (unsigned int)e->smblctx,
-                         fsp_str_dbg(fsp)));
+               DBG_DEBUG("unlock start=%"PRIu64", len=%"PRIu64" for "
+                         "pid %"PRIu64", file %s\n",
+                         e->offset,
+                         e->count,
+                         e->smblctx,
+                         fsp_str_dbg(fsp));
 
                if (e->brltype != UNLOCK_LOCK) {
                        /* this can only happen with SMB2 */