]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Avoid casts
authorVolker Lendecke <vl@samba.org>
Mon, 3 Jun 2019 19:31:26 +0000 (21:31 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jun 2019 12:54:01 +0000 (12:54 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/reply.c

index c6bee38a41bf2977f6a6a8d4ea8a799878c140ee..8c9d5b2cab6e17ea8eb3e8a2f476702beec1969b 100644 (file)
@@ -3810,10 +3810,13 @@ void reply_lockread(struct smb_request *req)
        maxtoread = xconn->smb1.sessions.max_send - (smb_size + 5*2 + 3);
 
        if (numtoread > maxtoread) {
-               DEBUG(0,("reply_lockread: requested read size (%u) is greater than maximum allowed (%u/%u). \
-Returning short read of maximum allowed for compatibility with Windows 2000.\n",
-                       (unsigned int)numtoread, (unsigned int)maxtoread,
-                       (unsigned int)xconn->smb1.sessions.max_send));
+               DBG_WARNING("requested read size (%zu) is greater than "
+                           "maximum allowed (%zu/%d). "
+                           "Returning short read of maximum allowed for "
+                           "compatibility with Windows 2000.\n",
+                           numtoread,
+                           maxtoread,
+                           xconn->smb1.sessions.max_send);
                numtoread = maxtoread;
        }