From: Volker Lendecke Date: Mon, 27 May 2019 11:45:59 +0000 (+0200) Subject: smbd: Avoid casts in smbd_do_unlocking() X-Git-Tag: ldb-2.0.5~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=199bb3d72a0b80597265aaddd53adf97d1b34d30;p=thirdparty%2Fsamba.git smbd: Avoid casts in smbd_do_unlocking() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 48042f84a73..88823ae31c9 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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 */